Computing.Net > Forums > Windows Server 2003 > cmd command to move file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

cmd command to move file

Reply to Message Icon

Name: tanners
Date: December 23, 2008 at 15:26:09 Pacific
OS: 2003
CPU/Ram: 21 GB
Product: Hewlett-packard / DL360
Comment:

The following is a cmd command to move a file:

sysopts="cmd(move \\server\WCM San Francisco\DEV\&F D:\Apps\dev\FileWatcherExtract\Outbound\&F) desktop(yes)"

however the file is unable to move because there are spaces in the folder (WCM San Francisco). so i put in quotes for the folder "\\server\WCM San Francisco\DEV\&F". however, this caused an error as i have quotes preceding the cmd command. i am unable to remove the quotes preceding the cmd command. does anyone know how i can execute the script given the source folder has quotes in it?




Sponsored Link
Ads by Google

Response Number 1
Name: guapo
Date: December 23, 2008 at 16:34:39 Pacific
Reply:

Truncate the name of the file the way DOS always did. Let's say I'm at a command prompt in the root directory which is C: and I want to change directories to documents and settings, which has white spaces.

C:\>cd docume~1

C:\DOCUME~1>

Now I'm in the documents and settings directory. In your case it would be
wcmsan~1 You take the first 6 characters and and ~1 That's your directory.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows Server 2003 Forum Home


Sponsored links

Ads by Google


Results for: cmd command to move file

Batch script to move/delete files www.computing.net/answers/windows-2003/batch-script-to-movedelete-files/6453.html

trying to share files.... www.computing.net/answers/windows-2003/trying-to-share-files/1612.html

Batch File to Copy File www.computing.net/answers/windows-2003/batch-file-to-copy-file/3521.html