S
sen
I am trying to use "task schedule" to run a cmd file to back up files and
later do some other things but first I need to finish writting the file this
is what I have so far.....
----------------------BEGIN---------------------
cls
@echo off
title task000backup
at time id /every:date
if not exist "G:\BACKUP" md G:\BACKUP
copy /D /V /Y C:\Documents and Settings\username\Application Data\something
/D /V /Y G:\BACKUP\ /D /V /Y
ren G:\BACKUP\something [ something ]
-----------------------END----------------------
Here are my questions:
- id should that be the scheduled task number.. say "000" or should it look
like " id 000" ?
- am I copying all the files in the something folder including
subdirectories correctlly?
- the /every:date switch how can I get it to run every third day?
- for time do I replace it with "04:00" or do I make it "time 04:00" ?
- how can I make the cmd window appear for a 3or5seconds and then nologer
show or not at all ? (this is not as important)
- should i pause between this action set and the others which I want to add?
If so how and where?
- NOTE: the last line where [ something ] appears I want that to be the new
filename... did I do this correctlly?
later do some other things but first I need to finish writting the file this
is what I have so far.....
----------------------BEGIN---------------------
cls
@echo off
title task000backup
at time id /every:date
if not exist "G:\BACKUP" md G:\BACKUP
copy /D /V /Y C:\Documents and Settings\username\Application Data\something
/D /V /Y G:\BACKUP\ /D /V /Y
ren G:\BACKUP\something [ something ]
-----------------------END----------------------
Here are my questions:
- id should that be the scheduled task number.. say "000" or should it look
like " id 000" ?
- am I copying all the files in the something folder including
subdirectories correctlly?
- the /every:date switch how can I get it to run every third day?
- for time do I replace it with "04:00" or do I make it "time 04:00" ?
- how can I make the cmd window appear for a 3or5seconds and then nologer
show or not at all ? (this is not as important)
- should i pause between this action set and the others which I want to add?
If so how and where?
- NOTE: the last line where [ something ] appears I want that to be the new
filename... did I do this correctlly?