| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
DOS copy command
|
Original Message
|
Name: JohnMole
Date: July 17, 2007 at 06:23:07 Pacific
Subject: DOS copy commandOS: Vista UltimateCPU/Ram: Pentium dualModel/Manufacturer: Dell laptop |
Comment: I am running a DOS application called ASPECT. This has a programming/scripting language. I create a batch file in ASPECT which contains a COPY command. Then I run the batch file from ASPECT. This is the command line in the batch file: copy C:\SCS\SCSWORK\efile.csv C:\SCS\SCSWORK\file.csv DOS gives the error message: File not found - C:\SCS\SCSWORK The file I am copying does exist. When I run the batch file directly from DOS it works fine. The application works fine on Windows 2000. Does anyone have any suggestions that might help please?
Report Offensive Message For Removal
|
|
Response Number 2
|
Name: astroraptor
Date: July 17, 2007 at 08:42:48 Pacific
|
Reply: (edit)Actually there is. If you type "command" from the Run dialog box, you're actually in a MS-DOS emulator. Maybe his partition is FAT32 and thereby accessible from Windows 9x DOS. I would try to run the "copy" command and see if it works. If it doesn't, surely "help" works and it will show you commands that will work. Another thing would be to rename the "bat" file to "cmd". I haven't run Vista all that much, who knows, maybe "copy" is now "archaic". ;)
Report Offensive Follow Up For Removal
|
|
Response Number 3
|
Name: jefro
Date: July 17, 2007 at 19:48:55 Pacific
|
Reply: (edit)See the ms gui for that to see if file permissions are OK on that folder. See also result of command dir efile.cvs /s I read it wrong and answer it wrong too. So get off my case you goober.
Report Offensive Follow Up For Removal
|
|
Response Number 4
|
Name: rvprog
Date: July 27, 2007 at 08:02:42 Pacific
|
Reply: (edit)I had the same problem with Vista, where the COPY command would work from the Command Line, but when called from a SHELL command in BASIC it would not find the file to copy. I substituted XCOPY and it worked fine. I'm not sure if this is because COPY is an internal command part and XCOPY is an external command. If you only need to run this under Vista you can also try the new ROBOCOPY command. rv
Report Offensive Follow Up For Removal
|
|
Response Number 5
|
Name: teevc
Date: July 31, 2007 at 07:59:36 Pacific
|
Reply: (edit)The command does not find the file to copy, the call to "copy" itself runs fine, otherwise he would not mention "SCSWORK" So, it is the functionality of COPY which is failing, not that COPY itself cannot be found. You may want to try XCOPY or ROBOCOPY, instead, possibly to get the same error message. Just try to show the file via DOS, to see if it is not a filesystem/permission file problem, as that seems to be the only thing left
Report Offensive Follow Up For Removal
|
|
Response Number 6
|
Name: teevc
Date: July 31, 2007 at 08:03:34 Pacific
|
Reply: (edit)[quote]Do you mean NT Command Prompt, I could find no MS-DOS in Vista/XP/W2K/W2K3/NT ?[/quote] Nobody mentioned MS-DOS
Report Offensive Follow Up For Removal
|
|
Response Number 7
|
Name: ismok
Date: August 12, 2007 at 23:47:22 Pacific
|
Reply: (edit)Call your copy command with cmd /c cmd /c copy C:\SCS\SCSWORK\efile.csv C:\SCS\SCSWORK\file.csv Cmd /c will help to other non working commands also. At least dir command does not work properly. I inserted cmd /c to batch calling and therefore no need to change batch files (we had 560 of them... :) cmd /c call test.bat
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Windows Vista Forum Home