/S Removes all directories and files in the specified directory in addition to the directory itself.
addition to the directory itself. is a problem for me.
i want some command that does like RMDIR except for the addition to the directory itself part.
I need the current dir name to stay put.
when the current dir is removed by RMDIR, the windows explorer falls back to the parent directory window, this creates a constant annoying situation for running drag and drop batch files, because i need BIG FILE icons in the file window
Code: Select all
this is to delete all in the G1 directory before a new one starts. And a new one starts [b]very very often[/b] in drag and drop batch operations
set G1=M:\ABC
IF EXIST "%G1%" RMDIR /S /Q "%G1%"
MKDIR "%G1%"
Explorer /e, /select, filename
Explorer /e, /select, path
using NirCMDC.EXE in a batch can do what i want but with the price at the moment, i have to use NirCMDC.EXE wait 1000
i have to pay the prices for running NirCMD and for the WAIT option