Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows 95 / July 2003

Tip: Looking for answers? Try searching our database.

DOS Copy command

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bruce Gormley - 02 Jul 2003 20:59 GMT
Itried to use a DOS copy command in an autoexec.bat file.
It didn't work
I searched for copy.exe and copy.com in my hd and the PC
found no such command.
Where is the command ?
Hugh Candlin - 02 Jul 2003 21:16 GMT
> Itried to use a DOS copy command in an autoexec.bat file.
> It didn't work
> I searched for copy.exe and copy.com in my hd and the PC
> found no such command.
> Where is the command ?

It is an internal command, contained in COMMAND.COM

How many copies of COMMAND.COM are on your hard drive,
and where are they?

Copy and paste the content of AUTOEXEC.BAT here
so that someone can check the syntax.
Tim Slattery - 03 Jul 2003 13:45 GMT
>Itried to use a DOS copy command in an autoexec.bat file.
>It didn't work
>I searched for copy.exe and copy.com in my hd and the PC
>found no such command.
>Where is the command ?

The command is "copy". Open a DOS box and type "copy /?" for details
on usage.

Signature

Tim Slattery
MS MVP(DTS)
Slattery_T@bls.gov

cquirke - 04 Jul 2003 15:08 GMT
On Thu, 03 Jul 2003 08:45:31 -0400, Tim Slattery <Slattery_T@bls.gov>

>>Itried to use a DOS copy command in an autoexec.bat file.
>>It didn't work
>>I searched for copy.exe and copy.com in my hd and the PC
>>found no such command.
>>Where is the command ?

>The command is "copy". Open a DOS box and type "copy /?" for details
>on usage.

Copy doesn't exist as a stand-alone file; it's an internal command
coded within Command.com (or the engine files called by Command.com)

That's why you can't find it as an .exe, .com, .bat, .pif, .scr etc.!

Unless you are running NT or WinME (which may skip or don't process
such commands in Autoexec.bat, respectively), Copy should work in
Autoexec.bat, or any other .bat file - but there are limits to what
Copy can do (hidden files, directories); XCopy may be what you need.

Make sure also that it's C:\Autoexec.bat you are editing, and not a
file of a different name or an Autoexec.bat in a different directory.
Unless it's a WinStart.bat in the Windows base directory, no other
.bat are run automatically when Windows starts unless they are
specifically called from the startup axis or Tasks.

Also, follow the login in your Autoexec.bat to make sure the line you
are adding actually gets interpreted (i.e. isn't stepped-around by a
GoTo, or is missed because a preceding line runs a .bat without using
the Call command, so that it never returns)

Finally, bear in mind that many places where commands can be entered
and run (e.g. Start, Run, or Tasks, or file associations) will not use
Command.com and thus not support Command.com's internal commands.

In such cases, use Command.com /C Copy... to have Command.com raun the
command and then exit, or Command.com /K Copy... to have Command.com
run the command and then stick around.

>--------------- ---- --- -- - -  -    -
  I'm baaaack!
>--------------- ---- --- -- - -  -    -
glee - 04 Jul 2003 18:42 GMT
"cquirke" <cquirke@iafrica.com> wrote in message
> >--------------- ---- --- -- - -  -    -
>    I'm baaaack!
> >--------------- ---- --- -- - -  -    -

...and it's about time!  
Glad to see you are finding time for these groups again.

...glen
--
Glen Ventura, MS MVP W95/98 Systems
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.