nodnerb
4/1/07 3:39:59 PM
Hero Fairy Princess

|
Yo. Simple stuff. Wanting to copy files from one folder to another on a daily basis (because our system creates a daily report in one drive - but my admin staff don't have access to that drive - so I need to copy the files to a drive they have access to). Can it be done in Windows Schedule Tasks? Or is there something else I need to use. Cheers. :)~ ----- A cat will almost always blink when hit with a hammer
|
thylacine
4/1/07 4:08:16 PM
Guru

|
What system does that? Can it not just be changed to do this to the other drive? If not, should just be able to create a batch file, and tell Scheduled Tasks to run that daily. So, quick-and-easy, just open a new Notepad session, with the following lines copy <FullSourcePath>\filename <FullDestinationPath> then save it as 'filecopy.bat' or whatever, add a new scheduled task, when prompted what app to run, Browse to wherever you saved the batch file, and select it, tell the Task Scheduler when you want it done, and bingo. Obviously you should test it before scheduling, as the above command'll do it 'invisibly' (you won't get much on screen if anything; maybe just a quick dos box flashing up, the time taken for which'll depend on the filesize). Alternately, depending how often you reboot your PC, just put the batch file in your startup folder in Windows. Edited by thylacine: 4/1/2007 04:12:23 PM ----- "Men become civilized, not in proportion to their willingness to believe, but in proportion to their readiness to doubt" -- H.L. Mencken
|
nodnerb
4/1/07 4:19:17 PM
Hero Fairy Princess

|
hmmm...maybe the batch file in the start up is a better option, although that wouldn't happen when I'm on leave. This is our Symposium drive. Scheduled reports can only write to the drive that it's on because "Yip" won't create a share to other drives (us 'vs them ITSC/Commander external contract thing). Because access to the drive is restricted, I have to copy folders fairly frequently so that my admin staff can complete reports on data etc. Better than what we had, but could be even betterer...I guess. :)~ Edited by nodnerb: 4/1/2007 04:34:46 PM ----- A cat will almost always blink when hit with a hammer
|
thylacine
4/1/07 4:26:30 PM
Guru

|
Ewww... sounds like fun. Also sounds like the batch file (in place of some other scripted event) sounds like your only option. ----- "Men become civilized, not in proportion to their willingness to believe, but in proportion to their readiness to doubt" -- H.L. Mencken
|
nodnerb
4/1/07 4:29:39 PM
Hero Fairy Princess

|
errr....if it's scripted into my scheduled tasks...won't my lappy need to ne connected to the network and pluggered in to ze power for it to work...or can I attach it to my profile and have happy days there? :)~ ----- A cat will almost always blink when hit with a hammer
|
schplade
4/1/07 4:49:21 PM
Champion

|
can you put it into the scheduled tasks of the server or something? that'd be the best place to have it. ----- x2 3600+ 2200mhz DFI Infinity NF UltraII-M2 2GB Gskill NR 800mhz x1900gt 662mhz core, 860 memory
|
nodnerb
4/1/07 5:26:30 PM
Hero Fairy Princess

|
There's a thought. I wonder if I can access it directly? hmmmm :/~ ----- A cat will almost always blink when hit with a hammer
|
tantryl
4/1/07 5:35:59 PM
SuperHero Immortal

|
You could use a simple scheduled copy program like http://allwaysync.com/ as well. ----- I smell the smelly smell of something that smells smell.
|
johnsee
4/1/07 8:52:57 PM
Mod SuperHero Titan

|
Why not use the backup program built into XP. It's surprisingly really good! ----- Welcome to our XHTML <bar />! Sorry, we're closed. ------ http://www.Sandstorming.com | http://www.Messquoted.com | http://www.TheTrailerMash.com
|
nodnerb
4/1/07 10:12:45 PM
Hero Fairy Princess

|
Where do I find that Johnsee? :)~ ----- A cat will almost always blink when hit with a hammer
|
bastard
5/1/07 9:45:10 AM
Titan

|
Johnsee: I am not sure the backup program will work, mainly because ntbackup creates a .bfk file out of whatever is being accessed. Noodnerb: The scheduled tasks (or you can use "at" at the command prompt) with a command script is the best bet, if you need to use network locations, then use xcopy. Regardless of what method you choose, you will need to have it running on a computer that is on . ----- A Black Car?
|
nodnerb
11/1/07 3:34:54 PM
Hero Fairy Princess

|
Hey Working with some batch file education with thy's atm...dropped in this little beauty that the man suggested, but didn't work. Me o'l mate 8 posts up is querying the code...anyone wanna check it over for accuracy? Cheers
copy I:\TARGET FOLDER\*.* \\pathofdrive\folder\personalfolders\folderwithmynameonit\TARGET FOLDER FO FILES\ /S /Y
Right? Wrong? :)~ Edited by nodnerb: 11/1/2007 03:35:40 PM ----- A cat will almost always blink when hit with a hammer
|
Slace
11/1/07 7:53:53 PM
Guru

|
yeah that looks pretty much right ----- Why can't a programmer tell the difference between Halloween and Christmas? Because OCT31 = DEC25
|
nodnerb
11/1/07 11:14:48 PM
Hero Fairy Princess

|
Cheers Slace Just have to keep trouble shooting I guess. Wonder why it's not working? :?~ ----- A cat will almost always blink when hit with a hammer
|
Seloh
12/1/07 4:30:00 PM
Champion

|
three possibilities I can think of (i know in your example you havnt used the real locations/URLs)
first option remove the final slash from the end of the destination location. {Ignore this one tested since posting and it doesnt care one way or the other} second option if you have any spaces , maybe even if you dont, put the whole location in speech marks so the command prompt knows its all one entry, e.g. copy "I:\TARGET FOLDER\*.*" "\\pathofdrive\folder\personalfolders\folderwithmynameonit\TARGET FOLDER FO FILES" /S /Y third option would be to map and unmap the location as part of your scheduled batch file net use x: "\\pathofdrive\folder\personalfolders\folderwithmynameonit\TARGET FOLDER FOR FILES" copy command net use /delete x: Please let me know if any of these worked or not as little rusty in command prompt and would like to know if wasted your time or not. Good Luck EDIT - Killed option one Edited by Seloh: 12/1/2007 04:36:31 PM ----- E6600 Core 2 Duo, ASUS P5WDH Deluxe, X1600XT video card, 2x1Gb RAM, 120Gb+160Gb SATA drives with WinXP Pro P4 3Ghz HT 2x120Gb Raid 1 2x 400Gb 1GB Ram Win2003 SVR as PDC with Exchange 2003. Xbox - Matrix chip, X2 BIOS, Media Centre dash, 80Gb
|
Seloh
12/1/07 4:39:20 PM
Champion

|
PS i know it can be done cause one company i worked for scheduled task a command prompt app called Robocopy (fancier XCopy) to run nightly to copy files from a windows server to share on a UNIX server nightly ----- E6600 Core 2 Duo, ASUS P5WDH Deluxe, X1600XT video card, 2x1Gb RAM, 120Gb+160Gb SATA drives with WinXP Pro P4 3Ghz HT 2x120Gb Raid 1 2x 400Gb 1GB Ram Win2003 SVR as PDC with Exchange 2003. Xbox - Matrix chip, X2 BIOS, Media Centre dash, 80Gb
|
nodnerb
12/1/07 9:18:49 PM
Hero Fairy Princess

|
I'll get back to this next week Seloh. Thanks for the tips man. Prolly try it Tuesday. Cheers :)~ ----- A cat will almost always blink when hit with a hammer
|