Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move script

Status
Not open for further replies.

siulong2002

Programmer
Jan 15, 2003
38
GB
Can anyone tell me if the MOVE command has been changed in windows 2000.

I'm trying to write a script that moves the files from on file server to another and i can't seem to get it to work.

Am i being completely thick.

I thought the command would be

move \\servername\d$\test \\servername\test

Is this correct??

Thanks for your help.

W
 
I just did some testing and it appears that MOVE is still using 8.3 format for pathways.


example:

MOVE \\Old Server\This Directory\File to Move.doc \\New Server\This Directory

(in 8.3 format it translates to:)

MOVE \\oldser~1\thisdi~1\fileto~1.doc \\newser~1\thisdi~1


If you keep in mind that it still uses 8.3 directory and path names then your script(s) will work.

Have a nice day.

--MiggyD
 
If you go to and look for the allhelp.bat link, it will download a 2k zip file which when expanded and run, produces a htm file of all your available command line command help files, including move.

Shouldn't you reference the files you want to move?
move \\servername\d$\test\*.* \\servername\testAssuming you have full permissions on the paths on both servers.
 
We have 2 win2k servers (one in each building), I had no problems with direct naming of the directories. I believe ASP takes care of this.

--MiggyD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top