How can I automatically have data get copied from a shared drive onto a specified local folder on my machine, say once a week? Is there a MSDOS batch script (hopefully with a few lines) that can accomplish this?
Thanks...
10 Replies - 770 Views - Last Post: 24 March 2011 - 02:31 PM
#1
How Can I Automatically Copy Data from a Shared Drive to My Computer?
Posted 24 March 2011 - 01:27 PM
Replies To: How Can I Automatically Copy Data from a Shared Drive to My Computer?
#2
Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?
Posted 24 March 2011 - 01:30 PM
Sure - a qbasic app can be set to a scheduled task (control panel in windows) to run at a given time for ever!
the batch scripts are pretty easy - do you know how to write the command out yourself in a command window?
the batch scripts are pretty easy - do you know how to write the command out yourself in a command window?
#3
Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?
Posted 24 March 2011 - 01:33 PM
modi123_1, on 24 March 2011 - 01:30 PM, said:
Sure - a qbasic app can be set to a scheduled task (control panel in windows) to run at a given time for ever!
the batch scripts are pretty easy - do you know how to write the command out yourself in a command window?
the batch scripts are pretty easy - do you know how to write the command out yourself in a command window?
Not really, but definitely willing to learn! If you can point me to a specific resource with an example to do exactly that, I would greatly appreciate it!
#4
Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?
Posted 24 March 2011 - 01:39 PM
DecafJava, on 24 March 2011 - 01:33 PM, said:
modi123_1, on 24 March 2011 - 01:30 PM, said:
Sure - a qbasic app can be set to a scheduled task (control panel in windows) to run at a given time for ever!
the batch scripts are pretty easy - do you know how to write the command out yourself in a command window?
the batch scripts are pretty easy - do you know how to write the command out yourself in a command window?
Not really, but definitely willing to learn! If you can point me to a specific resource with an example to do exactly that, I would greatly appreciate it!
I just checked out the Task Scheduler in Windows and I see this is pretty straight forward to set up. However, I'm not sure how the app should be written. Should I just look up a regular COPY command in the batch script language and that should do??
#5
Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?
Posted 24 March 2011 - 01:39 PM
What part "not really"? The making of scheduled tasks? DOS command lines? QBASIC?
#6
Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?
Posted 24 March 2011 - 01:56 PM
modi123_1, on 24 March 2011 - 01:39 PM, said:
What part "not really"? The making of scheduled tasks? DOS command lines? QBASIC?
Scheduled Tasks is pretty straight forward, just figured it out. What I suffer with is writing the script itself. Here is what I have so far and it doesn't seem to work:
I would like everything inside folder a to get copied to folder b:
(In a file called backup.bat)
@echo off copy "%userprofile%\John\Desktop\a" "%userprofile%\John\Desktop\b"
And I already setup a scheduled task to run this backup.bat every week (but of course the way I'm testing out the script to see if it works is just by manually double-clicking the bat file and having it run).
DecafJava, on 24 March 2011 - 01:52 PM, said:
modi123_1, on 24 March 2011 - 01:39 PM, said:
What part "not really"? The making of scheduled tasks? DOS command lines? QBASIC?
Scheduled Tasks is pretty straight forward, just figured it out. What I suffer with is writing the script itself. Here is what I have so far and it doesn't seem to work:
I would like everything inside folder a to get copied to folder b:
(In a file called backup.bat)
@echo off copy "%userprofile%\John\Desktop\a" "%userprofile%\John\Desktop\b"
And I already setup a scheduled task to run this backup.bat every week (but of course the way I'm testing out the script to see if it works is just by manually double-clicking the bat file and having it run).
Oh! I figured it out.
@echo off copy "%userprofile%\Desktop\a" "%userprofile%\Desktop\b"
Took out the "John" username, since that's already included in the userprofile var!
#7
Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?
Posted 24 March 2011 - 02:01 PM
Wow.. pretty quick, eh?
#8
Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?
Posted 24 March 2011 - 02:11 PM
#9
Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?
Posted 24 March 2011 - 02:19 PM
Will this copying feature also work for two shared drives that my current machine is connected to (assuming I already have the Map Network Drive stuff setup and can easily access both drives from my machine)??
#10
Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?
Posted 24 March 2011 - 02:20 PM
shouldn't be a problem. Mapping drives makes it so they are like local ones.
#11
Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?
Posted 24 March 2011 - 02:31 PM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote






|