Classic Shell
http://classicshell.net/forum/

Loop in a specific Directory
http://classicshell.net/forum/viewtopic.php?f=10&t=7267
Page 1 of 1

Author:  smurfsmurfsmurf [ Wed Jan 18, 2017 6:00 am ]
Post subject:  Loop in a specific Directory

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?

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/