|
Answer» I want to xcopy a directory with all subfolders & files in it. I'm using xcopy sourec destination /Y/I/E/Q/F. I know it worked before , but now suddenly doesn't copy the subfolders in the directory. It copies the files in it though. Plz help!!!
Thanks CVPGet rid of the /q. /f and /q conflict with each other. use xcopy /? to get a list of the available switchesHi Nick
The problem was beacuse source location was not specified by me correctly.Silly me:) I think I have another silly issue. This used to work all the while but accidently the .bat file got deleted & I had to create a new one. I want to rename the file to the system date. I'm using: for /f "tokens=5 delims=/ " %%d in ("%date%") do rename "C:\DATA" %%e-%%f-%%g
Any idea why the file isn't renamed? Help is much appreciated.
Regards CVPTry this...
For /f "tokens=2-4 delims=/ " %%a in ('date/t') do ( Set month=%%a Set day=%%b Set year=%%c ) REN C:\YOUR_PATH\YOUR_FILE.TXT NEW_FILE_NAME%year%%month%%day%.TXT
Thank you SPOILER. It worked but I wasn't ABLE to understand what 'date/t' does...
I'm trying to delete the files older than a specific time. How do I go about this?
Thanks & Regards CVP
|