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
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?
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.
Summary: If you havent already try using xcopy to move and delete the files. Open up a command prompt and type XCOPY /? for all the commands....It can also be made into a batch file simply by using notepad. Go...
Summary: hi guys, im using windows 2003 on 1 box and 2000pro on the other. i have ics working and both can see each other in network neibhourhood. But when i try to access files on the 2003 machine from the 20...
Summary: Oh shoot...I just realized. in order to use the %username% variable, it needs to pull that info from somewhere. Without an actual username to associate the variable to the file copy will go nowhere....