Search found 7 matches
- 03 Nov 2011 09:12
- Forum: DOS Batch Forum
- Topic: Backup File in BAT file with certain options
- Replies: 12
- Views: 10275
Re: Backup File in BAT file with certain options
Windows 7 Home premium
- 03 Nov 2011 08:21
- Forum: DOS Batch Forum
- Topic: Backup File in BAT file with certain options
- Replies: 12
- Views: 10275
Re: Backup File in BAT file with certain options
c:\mycompany> for /F "skip=1 delims=." xd in <'wmic OS Get LocalDateTime'> do echo _%d_
c:\mycompany>echo _20111103141403_
_20111103141403_
_\mycompany>echo _
_
c:\mycompany>echo _20111103141403_
_20111103141403_
_\mycompany>echo _
_
- 03 Nov 2011 07:24
- Forum: DOS Batch Forum
- Topic: Backup File in BAT file with certain options
- Replies: 12
- Views: 10275
Re: Backup File in BAT file with certain options
all it is saying now is
The file name. directory name , or volume label syntax is incorrect.
Regards
Ian
The file name. directory name , or volume label syntax is incorrect.
Regards
Ian
- 03 Nov 2011 02:05
- Forum: DOS Batch Forum
- Topic: Backup File in BAT file with certain options
- Replies: 12
- Views: 10275
Re: Backup File in BAT file with certain options
Much appreciated for your help , I have put the code in a BAT file and it works great ie copies the file and retains only the last 5 copies. @echo off for /f "skip=1 delims=." %%d in ('wmic OS Get LocalDateTime') do copy /b "chauffeur.accdb" "chauffeur_%%d.accdb" for /f...
- 02 Nov 2011 10:54
- Forum: DOS Batch Forum
- Topic: Backup File in BAT file with certain options
- Replies: 12
- Views: 10275
Re: Backup File in BAT file with certain options
Have looked at coding and don't understand a word of it. My expertise in dos commands just about allows me to cd md and copy.
Ian
Ian
- 02 Nov 2011 09:44
- Forum: DOS Batch Forum
- Topic: Backup File in BAT file with certain options
- Replies: 12
- Views: 10275
Re: Backup File in BAT file with certain options
Much appreciated Dave, will endevour to digest and hope I can make it work.
Ian
Ian
- 02 Nov 2011 08:47
- Forum: DOS Batch Forum
- Topic: Backup File in BAT file with certain options
- Replies: 12
- Views: 10275
Backup File in BAT file with certain options
I would like to be able to do the following in a bat file , if possible , Copy a file called chauffeur.accdb to a file called chauffeur1.accdb The next time the bat file is run copy the file to chauffeur2.accdb . the next time to chauffeur3.accdb etc also to throw into the mix delete the oldest vers...