Computing.Net > Forums > Windows Vista > DOS copy command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DOS copy command

Reply to Message Icon

Name: JohnMole
Date: July 17, 2007 at 06:23:07 Pacific
OS: Vista Ultimate
CPU/Ram: Pentium dual
Product: 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?




Sponsored Link
Ads by Google

Response Number 1
Name: Walter Mitty
Date: July 17, 2007 at 07:04:39 Pacific
Reply:

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


0

Response Number 2
Name: astroraptor
Date: July 17, 2007 at 08:42:48 Pacific
Reply:

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


0

Response Number 3
Name: jefro
Date: July 17, 2007 at 19:48:55 Pacific
Reply:

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.


0

Response Number 4
Name: rvprog
Date: July 27, 2007 at 08:02:42 Pacific
Reply:

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


0

Response Number 5
Name: teevc
Date: July 31, 2007 at 07:59:36 Pacific
Reply:

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


0

Related Posts

See More



Response Number 6
Name: teevc
Date: July 31, 2007 at 08:03:34 Pacific
Reply:

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

Nobody mentioned MS-DOS


0

Response Number 7
Name: ismok
Date: August 12, 2007 at 23:47:22 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Internet Explorer Crash jump drives



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


Sponsored links

Ads by Google


Results for: DOS copy command

Command prompt www.computing.net/answers/windows-vista/command-prompt/5223.html

Cursor Problem www.computing.net/answers/windows-vista/cursor-problem/827.html

Copy and Paste www.computing.net/answers/windows-vista/copy-and-paste/1567.html