[?]scheduled tasks

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?
 
M

Matthias Tacke

sen said:
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?
 
M

Matthias Tacke

sen said:
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----------------------
Sorry for my empty reply.

In addition to the very well answer from pegasus in ambnt,
please do not multipost, crosspost if necessary. There are some readers
common in both groups and it is annoying to see someone else already
took the time and effort to give an appropriate answer.

You mights also consider using xcopy or xxcopy from (www.xxcopy.com)
free for private use. Your above fragment is useless what you could have
proven easily yourself. Simply test it and see the errormessages.

Nearly every commandline program has one of these switchtes /? -? -h --h
See also my signature :)
 
S

sen

I dont see y u wasted your time critizing me.....there is no way for me or
any other member to know that the groups are related. It should be made a
point maybe to make a reference in all news groups of affilaite boards by
posting some time in the not so near future say like 2006 that way the post
will remain at the top not that I need to tell U thought u know how to do
this and U know the relations to the newsgroups here since U are a MVPof
microsoft.
While I on the other hand and persons like me do not and may not have easy
access to such references.

I do however appriaciate your help.....


-sen-






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----------------------
: >
: Sorry for my empty reply.
:
: In addition to the very well answer from pegasus in ambnt,
: please do not multipost, crosspost if necessary. There are some readers
: common in both groups and it is annoying to see someone else already
: took the time and effort to give an appropriate answer.
:
: You mights also consider using xcopy or xxcopy from (www.xxcopy.com)
: free for private use. Your above fragment is useless what you could have
: proven easily yourself. Simply test it and see the errormessages.
:
: Nearly every commandline program has one of these switchtes /? -? -h --h
: See also my signature :)
:
: --
: Greetings
: Matthias________________________________________
: For help on nt commands enter in a cmd window:
: W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
 
M

Mark V

In said:
I dont see y u wasted your time critizing me.....there is no way
for me or any other member to know that the groups are related. It

Which is why Cross-Posting is the way to go. Multi-posting is more
"evil" <G>.

You might still get flack for posting to a "wrong" group, but at
least readers will know where you posted.

2 cents toward efficiency.
should be made a point maybe to make a reference in all news
groups of affilaite boards by posting some time in the not so near
future say like 2006 that way the post will remain at the top not
that I need to tell U thought u know how to do this and U know the
relations to the newsgroups here since U are a MVPof microsoft.
While I on the other hand and persons like me do not and may not
have easy access to such references.

I do however appriaciate your help.....


-sen-






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----------------------
: >
: Sorry for my empty reply.
:
: In addition to the very well answer from pegasus in ambnt,
: please do not multipost, crosspost if necessary. There are some
: readers common in both groups and it is annoying to see someone
: else already took the time and effort to give an appropriate
: answer.
:
: You mights also consider using xcopy or xxcopy from
: (www.xxcopy.com) free for private use. Your above fragment is
: useless what you could have proven easily yourself. Simply test
: it and see the errormessages.
:
: Nearly every commandline program has one of these switchtes /? -?
: -h --h See also my signature :)
:
: --
: Greetings
: Matthias________________________________________
: For help on nt commands enter in a cmd window:
: W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
 
A

Al Dunbar [MS-MVP]

sen said:
I dont see y u wasted your time critizing me.....

No time was wasted if, by explaining how things work, you learn to do it
better. And, it was not in the nature of criticism, but of offering you help
regarding how you deal with newsgroups.
there is no way for me or
any other member to know that the groups are related.

That's not the issue. The issue is that both you and your readers (in
either/both newsgroup) are better served by cross-posting than
multi-posting - whether or not you are aware of any relationship.

Further, if you posted the same question to both groups, then you must have
had an inkling that they were related.
It should be made a
point maybe to make a reference in all news groups of affilaite boards by
posting some time in the not so near future say like 2006 that way the post
will remain at the top

For those of us using standard newsgroup reader clients, such messages will
effectively disappear once we have read them. In fact, it is often a mistake
to even guess that we all have a similar experience with the newsgroup.

More effective is the occasional reply such as Matthias gave you.
not that I need to tell U thought u know how to do
this and U know the relations to the newsgroups here since U are a MVPof
microsoft.

Do you think that MVP's *work* for Microsoft? Most of us were newbies here
ourselves, just like you are now.
While I on the other hand and persons like me do not and may not have easy
access to such references.

And, for that reason, he favoured you with a rather gracious explanation.
I do however appriaciate your help.....

That's the spirit.

/Al
-sen-






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----------------------
: >
: Sorry for my empty reply.
:
: In addition to the very well answer from pegasus in ambnt,
: please do not multipost, crosspost if necessary. There are some readers
: common in both groups and it is annoying to see someone else already
: took the time and effort to give an appropriate answer.
:
: You mights also consider using xcopy or xxcopy from (www.xxcopy.com)
: free for private use. Your above fragment is useless what you could have
: proven easily yourself. Simply test it and see the errormessages.
:
: Nearly every commandline program has one of these switchtes /? -? -h --h
: See also my signature :)
:
: --
: Greetings
: Matthias________________________________________
: For help on nt commands enter in a cmd window:
: W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top