Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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?

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". ;)

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.

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

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

[quote]Do you mean NT Command Prompt, I could find no MS-DOS in Vista/XP/W2K/W2K3/NT ?[/quote]
Nobody mentioned MS-DOS

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

![]() |
Internet Explorer Crash
|
jump drives
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |