I need it to work on Win10 and Win7 machines. If I can get this to work I'll make a batch file.
Winkey, "cmd" cd "e:\media\trainingvids" dir *.* /s /b /a -d > c:\temp\dork.txt So, to state the obvious but make sure I'm getting it, I'm opening a command prompt, changing to the correct directory, doing a directory listing of all files (including sub-directories (/s), no headers or footers so 'bare' format (/b), and trying to NOT display the directory (/a -d) – and then sending/piping that (>) to a file I've designated to be named and created (dork.txt) in a temporary directory (\temp) that already exists on my c:.
The problem is that it doesn't work. I'm not able to find a way to NOT include the full path along with the file names. I need a nudge with the syntax. Or maybe I've got it all wrong and it can't be done in this way.
What does my Basic batch file look like that can do this?
/a:-aor/a-d, with no space in between;diris required --dir*.*results in an error, whiledir *.*works fine.../aandd, so I left it there. To post a code snippet, indent each line 4 spaces or select and press{}which does the same thing