Search found 5 matches
- 16 Dec 2018 14:21
- Forum: DOS Batch Forum
- Topic: Creating a folder with today's date
- Replies: 5
- Views: 7423
Re: Creating a folder with today's date
Many thanks for all your help on this. I have managed to find another way of doing this. I will keep your suggestions for future tasks though.
- 16 Dec 2018 12:22
- Forum: DOS Batch Forum
- Topic: Using xcopy with folders with spaces
- Replies: 2
- Views: 3457
Re: Using xcopy with folders with spaces
Steffen
That's it!! I knew it was something as simple as that.
Changing the line:
For /D %%K IN ("C:\This Folder\*") DO ...
works for me!!
Thank you so much!!
That's it!! I knew it was something as simple as that.
Changing the line:
For /D %%K IN ("C:\This Folder\*") DO ...
works for me!!
Thank you so much!!
- 15 Dec 2018 12:08
- Forum: DOS Batch Forum
- Topic: Using xcopy with folders with spaces
- Replies: 2
- Views: 3457
Using xcopy with folders with spaces
Using xcopy with the code below. I have read you can put double quotes around the source and destination folder so that the folders with spaces can be treated correctly as a directory. However, when I use quotes around the path it shows an error: Invalid number of parameters For /D %%K IN ("C:\This ...
- 06 Dec 2018 13:04
- Forum: DOS Batch Forum
- Topic: Creating a folder with today's date
- Replies: 5
- Views: 7423
Re: Creating a folder with today's date
Squashman - Many thanks for the quick reply. However, I am not familar with these. This code was written by someone else and left with comments in but I have substituted the following lines of code is this correct? Also what do I need to change to make a folder with the current date? SETLOCAL FOR /f...
- 06 Dec 2018 12:25
- Forum: DOS Batch Forum
- Topic: Creating a folder with today's date
- Replies: 5
- Views: 7423
Creating a folder with today's date
Hi Is it possible in the code below to have the folder that is created to be today's date as the folder name? At the moment it's copying files and folders to a folder C:\Temp\test\backup\ but I would like the copied contents to go to a folder with the date structure yyyy_mm_dd, e.g C:\Temp\test\back...