Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Does anybody know what causes the "move" command in the windows shell to exit with code 1 ? Any error messages I've been able to find by Googling around are very vague, saying just "invalid function". The cause of this is trying to use the "move" command in a Visual Studio 2010 post-build step. I'm using something similar to move /Y srcfileanddir destfileanddir

share|improve this question
add comment

2 Answers

Command line errors for windows: http://www.hiteksoftware.com/knowledge/articles/049.htm (no affiliation)

Error: 1 Incorrect function : Action has attempted to execute non-recognized command in Windows command prompt cmd.exe.

Check your syntax and spelling.

share|improve this answer
add comment
up vote 1 down vote accepted

I finally found the problem. A couple of the paths had extra slashes, so there would be a \ separating directories rather than \, and that's what caused it to mess up. The weird thing is that this only happened when the 'move' command was invoked from within Visual Build Pro, not from the command line.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.