I'm trying to create a script in an application. The application should call
cmd.exe should run a statement
pushd \\file\share && move filename.txt \\file\share\newfilename.txt && popd
But this generates an error in an application
Program terminated with exit code <1>
When I run the same statement just replace move with copy, everything works fine
pushd \\file\share && copy filename.txt \\file\share\newfilename.txt && popd
del are producing the same result as move. Any ideas why this is happening? All these works from the command prompt just fine.