Link to home
Start Free TrialLog in
Avatar of CG_HD
CG_HDFlag for United States of America

asked on

using the "move" command via command line

Hello there - first off thanks for taking a look and my problem.
The situation: I'm writing one line of code to move data from a to b and I'm getting an syntax incorrect error. There's a good reason for doing this via command but I won't bore you with the details:)

Code: move G:\uploads\* H:\old users\departed employee images\
Error: The syntax of the command is incorrect

The G: drive is a internal hard drive and the H: is an external drive attached to the same system. All necessary rights have been setup/verified on the traversed directories. Spelling and directory paths have been ruled out. I ran the same command on some test directories in the root of C:\ without any trouble.  

Any input is much appciated!
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

USE QUOTES for paths with spaces and use the full wild card specification:
move "G:\uploads\*.*" "H:\old users\departed employee images\"
Avatar of CG_HD

ASKER

Using "G:\uploads\*.*" "H:\old users\departed employee images\" I get a slightly different error...

Error: The filename, directory name, or volume label syntax is incorrect.

The filename,  directory name and volume label  (G: and H:) have been verified.

thoughts?
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CG_HD

ASKER

Thanks oBdA - with a little tweeking that work perfectly...I appreciate everyone's help!