10 Replies - 1610 Views - Last Post: 24 March 2011 - 02:31 PM Rate Topic: -----

#1 DecafJava  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 73
  • Joined: 18-May 09

How Can I Automatically Copy Data from a Shared Drive to My Computer?

Posted 24 March 2011 - 01:27 PM

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...
Is This A Good Question/Topic? 0
  • +

Replies To: How Can I Automatically Copy Data from a Shared Drive to My Computer?

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9277
  • View blog
  • Posts: 34,789
  • Joined: 12-June 08

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?
Was This Post Helpful? 0
  • +
  • -

#3 DecafJava  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 73
  • Joined: 18-May 09

Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?

Posted 24 March 2011 - 01:33 PM

View Postmodi123_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?


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!
Was This Post Helpful? 0
  • +
  • -

#4 DecafJava  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 73
  • Joined: 18-May 09

Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?

Posted 24 March 2011 - 01:39 PM

View PostDecafJava, on 24 March 2011 - 01:33 PM, said:

View Postmodi123_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?


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??
Was This Post Helpful? 0
  • +
  • -

#5 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9277
  • View blog
  • Posts: 34,789
  • Joined: 12-June 08

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?
Was This Post Helpful? 0
  • +
  • -

#6 DecafJava  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 73
  • Joined: 18-May 09

Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?

Posted 24 March 2011 - 01:56 PM

View Postmodi123_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).

View PostDecafJava, on 24 March 2011 - 01:52 PM, said:

View Postmodi123_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!
Was This Post Helpful? 0
  • +
  • -

#7 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9277
  • View blog
  • Posts: 34,789
  • Joined: 12-June 08

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?
Was This Post Helpful? 0
  • +
  • -

#8 DecafJava  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 73
  • Joined: 18-May 09

Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?

Posted 24 March 2011 - 02:11 PM

View Postmodi123_1, on 24 March 2011 - 03:01 PM, said:

Wow.. pretty quick, eh?


Thanks for pointing me in the right direction with Windows Task Scheduler. That's exactly what I needed!
Was This Post Helpful? 0
  • +
  • -

#9 DecafJava  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 73
  • Joined: 18-May 09

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)??
Was This Post Helpful? 0
  • +
  • -

#10 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9277
  • View blog
  • Posts: 34,789
  • Joined: 12-June 08

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.
Was This Post Helpful? 0
  • +
  • -

#11 DecafJava  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 73
  • Joined: 18-May 09

Re: How Can I Automatically Copy Data from a Shared Drive to My Computer?

Posted 24 March 2011 - 02:31 PM

View Postmodi123_1, on 24 March 2011 - 03:20 PM, said:

shouldn't be a problem. Mapping drives makes it so they are like local ones.


Thanks again!!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1