Friday, July 31, 2009

Batch file (cmd.exe, too) cannot find file on shared drive?

Network (Novelle Netware) with a shared drive (F: for all users) to which everyone has read and write access to files there. (Don't ask; not my construction and it works here.)





A batch program on one computer (on and executed from its C: drive) successfully copies a file from a folder on the F: drive to two other folders on the F: drive. Syntax is:





copy F:\folder1\folderx\filename F: \folder2\filename


copy F:\folder1\folderx\filename F: \folder3\filename





I edited the working batch file and saved it as another named batch file. Folder and filenames changed; all legal names and all existing on the F: drive in the named places. (Verified here by two pairs of eyes through Windows Explorer and run cmd.exe DOS navigation.)





The second batch file errors out--"Cannot find the specified file." Same result, whether run on and from the original C: drive, the F: drive, or another computer's c: drive.





Any suggestions?

Batch file (cmd.exe, too) cannot find file on shared drive?
do you run the second batch with the same user/credential on system? or it's on a background process?
Reply:try just running the command from a command line





( ie go to c: copy F:\folder1\folderx\filename F: \folder3\filename ) but using the parameters of your new batch file


No comments:

Post a Comment