Hay ho
I'm not sure if im correct here, but im trying.
At the moment i am trying to make a command line code run from vba editor in excel.
Therefore I need the following Code in one line, but I'm unable to change it in that way.
Code is following:
cd c:\users\flori\Documents\Bestellwesen\zbackup
for /f "skip=2 delims=" %F in ('dir *.* /B /O-D /A-D') do del "%F"
Is there a possibility to get thos two lines compressed in only one?
start loop from specific folder
Moderator: DosItHelp
Re: start loop from specific folder
Put the folder path in your DIR command.