A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to copy file through bat-file only at appointed day of week?



 
 
Thread Tools Display Modes
  #1  
Old December 15th 08, 12:24 PM posted to microsoft.public.windowsxp.general
Natalia
external usenet poster
 
Posts: 9
Default How to copy file through bat-file only at appointed day of week?

hello,
how can i copy text file through bat-script only one time a week, for
example at friday?
Thank you very much in advance.
Ads
  #2  
Old December 15th 08, 12:56 PM posted to microsoft.public.windowsxp.general
Pegasus \(MVP\)[_2717_]
external usenet poster
 
Posts: 1
Default How to copy file through bat-file only at appointed day of week?


"Natalia" wrote in message
...
hello,
how can i copy text file through bat-script only one time a week, for
example at friday?
Thank you very much in advance.


You use the Windows Task Scheduler to launch the batch file at the required
time each Friday.


  #3  
Old December 15th 08, 01:26 PM posted to microsoft.public.windowsxp.general
Natalia
external usenet poster
 
Posts: 9
Default How to copy file through bat-file only at appointed day of wee

Thank you very much for your answer. Is it only way to do this?

"Pegasus (MVP)" wrote:


"Natalia" wrote in message
...
hello,
how can i copy text file through bat-script only one time a week, for
example at friday?
Thank you very much in advance.


You use the Windows Task Scheduler to launch the batch file at the required
time each Friday.



  #4  
Old December 15th 08, 01:45 PM posted to microsoft.public.windowsxp.general
Pegasus \(MVP\)[_2718_]
external usenet poster
 
Posts: 1
Default How to copy file through bat-file only at appointed day of wee

No, it isn't. You could also get a batch file to run all the time and check
the date and time once every minute. While this would work, it would be a
clunky and unreliable method. The Task Scheduler is the ideal tool for your
purpose.


"Natalia" wrote in message
...
Thank you very much for your answer. Is it only way to do this?

"Pegasus (MVP)" wrote:


"Natalia" wrote in message
...
hello,
how can i copy text file through bat-script only one time a week, for
example at friday?
Thank you very much in advance.


You use the Windows Task Scheduler to launch the batch file at the
required
time each Friday.





  #5  
Old December 15th 08, 02:08 PM posted to microsoft.public.windowsxp.general
Natalia
external usenet poster
 
Posts: 9
Default How to copy file through bat-file only at appointed day of wee

thank you very much for your answer

"Pegasus (MVP)" wrote:

No, it isn't. You could also get a batch file to run all the time and check
the date and time once every minute. While this would work, it would be a
clunky and unreliable method. The Task Scheduler is the ideal tool for your
purpose.


"Natalia" wrote in message
...
Thank you very much for your answer. Is it only way to do this?

"Pegasus (MVP)" wrote:


"Natalia" wrote in message
...
hello,
how can i copy text file through bat-script only one time a week, for
example at friday?
Thank you very much in advance.

You use the Windows Task Scheduler to launch the batch file at the
required
time each Friday.






  #6  
Old December 15th 08, 02:28 PM posted to microsoft.public.windowsxp.general
Pegasus \(MVP\)[_2719_]
external usenet poster
 
Posts: 1
Default How to copy file through bat-file only at appointed day of wee


"Natalia" wrote in message
...
thank you very much for your answer


You're welcome.


  #7  
Old December 16th 08, 06:55 AM posted to microsoft.public.windowsxp.general
Natalia
external usenet poster
 
Posts: 9
Default How to copy file through bat-file only at appointed day of wee

i'm really sorry for asking your advice again but is it safe to use such a way:

for /f %%i in ('wmic path win32_LocalTime get DayOfWeek') do set wd=%%i
echo %wd%

thank you

"Pegasus (MVP)" wrote:


"Natalia" wrote in message
...
thank you very much for your answer


You're welcome.



  #8  
Old December 16th 08, 07:33 AM posted to microsoft.public.windowsxp.general
Pegasus \(MVP\)[_2724_]
external usenet poster
 
Posts: 1
Default How to copy file through bat-file only at appointed day of wee

The command "wmic path win32_LocalTime get DayOfWeek" doesn't work on my
machine. What do you expect it to generate? And what do you get when you
type this command at the Command Prompt:
echo %date%{Enter}


"Natalia" wrote in message
...
i'm really sorry for asking your advice again but is it safe to use such a
way:

for /f %%i in ('wmic path win32_LocalTime get DayOfWeek') do set wd=%%i
echo %wd%

thank you

"Pegasus (MVP)" wrote:


"Natalia" wrote in message
...
thank you very much for your answer


You're welcome.





  #9  
Old December 16th 08, 07:54 AM posted to microsoft.public.windowsxp.general
Natalia
external usenet poster
 
Posts: 9
Default How to copy file through bat-file only at appointed day of wee

dear Pegasus, i really thank you for spending your time on my requests
echo %date%{Enter}
16.12.2008


when i start command
for /f %%i in ('wmic path win32_LocalTime get DayOfWeek') do set wd=%%i
echo %wd%

i see wd=2
(which means today is 2nd day of week)

thank you


"Pegasus (MVP)" wrote:

The command "wmic path win32_LocalTime get DayOfWeek" doesn't work on my
machine. What do you expect it to generate? And what do you get when you
type this command at the Command Prompt:
echo %date%{Enter}


"Natalia" wrote in message
...
i'm really sorry for asking your advice again but is it safe to use such a
way:

for /f %%i in ('wmic path win32_LocalTime get DayOfWeek') do set wd=%%i
echo %wd%

thank you

"Pegasus (MVP)" wrote:


"Natalia" wrote in message
...
thank you very much for your answer


You're welcome.






  #10  
Old December 16th 08, 08:24 AM posted to microsoft.public.windowsxp.general
Pegasus \(MVP\)[_2725_]
external usenet poster
 
Posts: 1
Default How to copy file through bat-file only at appointed day of wee

You ask if it is safe to use this command. Yes, of course it is, and if it
works for you, great!


"Natalia" wrote in message
...
dear Pegasus, i really thank you for spending your time on my requests
echo %date%{Enter}
16.12.2008


when i start command
for /f %%i in ('wmic path win32_LocalTime get DayOfWeek') do set wd=%%i
echo %wd%

i see wd=2
(which means today is 2nd day of week)

thank you


"Pegasus (MVP)" wrote:

The command "wmic path win32_LocalTime get DayOfWeek" doesn't work on my
machine. What do you expect it to generate? And what do you get when you
type this command at the Command Prompt:
echo %date%{Enter}


"Natalia" wrote in message
...
i'm really sorry for asking your advice again but is it safe to use
such a
way:

for /f %%i in ('wmic path win32_LocalTime get DayOfWeek') do set wd=%%i
echo %wd%

thank you

"Pegasus (MVP)" wrote:


"Natalia" wrote in message
...
thank you very much for your answer


You're welcome.








  #11  
Old December 16th 08, 09:14 AM posted to microsoft.public.windowsxp.general
Natalia
external usenet poster
 
Posts: 9
Default How to copy file through bat-file only at appointed day of wee

thank you very much again

"Pegasus (MVP)" wrote:

You ask if it is safe to use this command. Yes, of course it is, and if it
works for you, great!


"Natalia" wrote in message
...
dear Pegasus, i really thank you for spending your time on my requests
echo %date%{Enter}
16.12.2008


when i start command
for /f %%i in ('wmic path win32_LocalTime get DayOfWeek') do set wd=%%i
echo %wd%

i see wd=2
(which means today is 2nd day of week)

thank you


"Pegasus (MVP)" wrote:

The command "wmic path win32_LocalTime get DayOfWeek" doesn't work on my
machine. What do you expect it to generate? And what do you get when you
type this command at the Command Prompt:
echo %date%{Enter}


"Natalia" wrote in message
...
i'm really sorry for asking your advice again but is it safe to use
such a
way:

for /f %%i in ('wmic path win32_LocalTime get DayOfWeek') do set wd=%%i
echo %wd%

thank you

"Pegasus (MVP)" wrote:


"Natalia" wrote in message
...
thank you very much for your answer


You're welcome.









 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 04:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.