@b8two I like your solution better.
The space in the delims after the / makes a world of difference and I forget about the & to execute multiple commands on a line.
Thanks
Search found 2 matches
- 04 Nov 2013 13:30
- Forum: DOS Batch Forum
- Topic: Backup dos batch
- Replies: 3
- Views: 3809
- 31 Oct 2013 13:53
- Forum: DOS Batch Forum
- Topic: Backup dos batch
- Replies: 3
- Views: 3809
Re: Backup dos batch
We use for /F "tokens=2" %%I in ('date /t') do @set DS1=%%I for /F "tokens=1-3 delims=/" %%K in ('echo %DS1%') do @set backupmonth=%%K for /F "tokens=1-3 delims=/" %%K in ('echo %DS1%') do @set backupday=%%L for /F "tokens=1-3 delims=/" %%K in ('echo %DS1%') d...