And the code to add that to the code in number 3 above would be?
Sorry, but I haven't use dos commands for many many years.
Seems that old coding is still one of the best ways to go as DOS has hardly changed over the years.
Thanks in advance.
Search found 6 matches
- 22 Sep 2022 13:43
- Forum: DOS Batch Forum
- Topic: simple copy of folder for backup fails
- Replies: 9
- Views: 5341
- 22 Sep 2022 10:53
- Forum: DOS Batch Forum
- Topic: simple copy of folder for backup fails
- Replies: 9
- Views: 5341
Re: simple copy of folder for backup fails
Can I add Time to that?
- 22 Sep 2022 10:49
- Forum: DOS Batch Forum
- Topic: simple copy of folder for backup fails
- Replies: 9
- Views: 5341
Re: simple copy of folder for backup fails
I'm sorry, I just checked again and it actually created a new folder "TBBackup Thu 09-22-2022
- 22 Sep 2022 10:45
- Forum: DOS Batch Forum
- Topic: simple copy of folder for backup fails
- Replies: 9
- Views: 5341
Re: simple copy of folder for backup fails
I executed that batch file and got nothing in "f:/TBBackup%date:/=-%
That folder / file does not exist
That folder / file does not exist
- 22 Sep 2022 06:13
- Forum: DOS Batch Forum
- Topic: simple copy of folder for backup fails
- Replies: 9
- Views: 5341
simple copy of folder for backup fails
I originally had a powershell script to copy 2 folders for backup. After the most recent win 11 update, the script fails to run so I decided to just make a quick batch file to copy my thunderbird profiles folder to different drive for backup purposes. Here is the simple command in a batch file: @ech...
- 10 Dec 2017 07:46
- Forum: DOS Batch Forum
- Topic: System cannot find path specified
- Replies: 2
- Views: 4132
System cannot find path specified
I'm trying to use the following batch file to copy a file from C:\Users\DickSL\AppDAta\Roaming\Testbat\Testbati.txt to F:\Testbat\%filename% Batch file @echo off set "hr=%time:~0,2%-%time:~3,2%-%time:~6%" echo %hr% set "filename=%date%_%hr%_Testbati.txt" echo %filename% pause copy c:\users\DickSL\Ap...