The Command:
move /y c:\folder1\folder2\source_folder\ c:\destination_folder
moves the source_folder to the destination_folder OK when I type it in to the command prompt.
BUT the very same command doesn't work if it is in a .bat file.
I need a .bat file to move a few folders BUT I need to do this after DISABLING explorer.exe (so I don't know how to run a .bat file with elevated privileges from the command prompt, not sure it would do any good anyway )
The weird thing is, I can reset folder atributes, use takedown command and icacls all successfully from within the .bat file (it even acknowledges it ) and yet ... the very next line to move the said folder gives an error:
"the system cannot find the file specified"
(even though I'm trying to move a folder not a file)
the folder IS there its attributes are not "system" or "hidden" and if I navigate to it I can move it "manually" with the very same move /y command !!!!!!!!
How can I do this from within a batch file? (from the command shell with explorer.exe disabled )
it worked in XP!!!!! How do I make it work in VISTA.
HELP!
move /y c:\folder1\folder2\source_folder\ c:\destination_folder
moves the source_folder to the destination_folder OK when I type it in to the command prompt.
BUT the very same command doesn't work if it is in a .bat file.
I need a .bat file to move a few folders BUT I need to do this after DISABLING explorer.exe (so I don't know how to run a .bat file with elevated privileges from the command prompt, not sure it would do any good anyway )
The weird thing is, I can reset folder atributes, use takedown command and icacls all successfully from within the .bat file (it even acknowledges it ) and yet ... the very next line to move the said folder gives an error:
"the system cannot find the file specified"
(even though I'm trying to move a folder not a file)
the folder IS there its attributes are not "system" or "hidden" and if I navigate to it I can move it "manually" with the very same move /y command !!!!!!!!
How can I do this from within a batch file? (from the command shell with explorer.exe disabled )
it worked in XP!!!!! How do I make it work in VISTA.
HELP!