• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • Last Modified:

Anyone know of a Script of some sort to move a file from a mapped drive to a hard drive on a computer at a certain time each day

I have a Server which dumps a file on another computer every morning, I need to move that file to another computer every morning. It has to move, not copy.
0
jimmysupport
Asked:
jimmysupport
1 Solution
 
brettmjohnsonCommented:
What operating systems are the source and destination computer running?
0
 
jimmysupportAuthor Commented:
The File is generated by an Alpha Server and sent to a Win NT server (an ftp server we still use)
The computer which has a mapped drive to the NT unit is a Windows 2003 Server, it is here the file must end up.
0
 
jimmysupportAuthor Commented:
How about a batch file that was set to run in Scheduled Tasks? Would that work?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Clever_BobCommented:
That is exactly what you need Jimmysupport.

Here is an example of the syntax

xcopy "c:\Documents and Settings\usr1\*.*" "d:\Documents and Settings\usr1\*.*" /d/s/e/c/r/h/y/exclude:usr1ex.txt
0
 
jimmysupportAuthor Commented:
But doesn't x copy - copy the file not move it?
I need to MOVE the file from one computer to the other.
0
 
Leon FesterCommented:
use robocopy from the Windows 2003 resource kit. It works on win2k, winXP, win2K3.

It will move files as requested. Can be configured to monitor a specific folder, and mirror the contents as needs be.

Although the best functionality of Robocopy, IMHO is that it can, by default wait on a file, if the file is in use, and then continue the copy/move, once the file has become available.

It also has full logging capabilities and can copy the specific file security settings of individual files.
0
 
Leon FesterCommented:
P.S. You can either schedule the task via scheduled tasks. Although Robocopy does also have a switch that you can configure for robocopy to monitor a specific folder.
consider the /MON and /RH switches in robocopy
0
 
jimmysupportAuthor Commented:
I have tried to use robo copy with no success - perhaps I used the wrong syntax, I will go get the copy off the server and post it.
0
 
jimmysupportAuthor Commented:
Here is my syntax for robo:
ROBOCOPY z:\ f:\alpha *.bck /mov

z: is where the file is ( a mapped drive on the 2003 Server).
f:\alpha is a folder on the internal hard drive named f: on the 2003 server.

So, I want to MOve the only file named .bck to f:

That's what I thought anyhow.
Thanks folks for you assistance.
0
 
jimmysupportAuthor Commented:
Can anyone help me with the RoboCopy syntax?
0
 
jimmysupportAuthor Commented:
Got the syntax from Networking people...

ROBOCOPY  Z:\*.bck  F:\alpha\  /mov

dvt_localboy had the right program - Thanks
0
 
jimmysupportAuthor Commented:
I assigned a B grade because you didn't give syntax with your comment.
0
 
Leon FesterCommented:
Sorry I was offline...but thanks anyways.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now