[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1133
  • Last Modified:

copy con command in dos prompt of win 2003

HI,

copy con command i used to create files using DOS vr 6.
Is this command is still working i windows 2003 ?

iam getting error while using this command copy con <filename>
"not an external or interal command ?"

-Thanks for your time
0
ravikumarG
Asked:
ravikumarG
1 Solution
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
Hi ravikumarG,

You need to download and install the Windows Support tools to be able to access that command.

http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/TechRef/74787a10-6dff-4623-98ab-dc26f1faa6eb.mspx

Good Luck!

Jeff
TechSoEasy
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Very odd.  I've never seen the need to install additional tools to use copy con.  I never installed these tools for my install of 2003 SBS, nor for 2000 or NT or XP.  Don't have any other 2003 installs right now, so I can't test it, but I just find it hard to believe you need to install something to enable that.

ravikumar, try changing into the windows\system32 directory and running the command from there.  I've occasionally seen paths get screwed up and built in commands fail.
0
 
ravikumarGAuthor Commented:
HI,
leew i reinstalled 2003 (ENterprise) and trid
C:\>copy con g
copy con testing ............
The I/O operation has been aborted because of either a thread exit or an applica
tion request.
        0 file(s) copied.

ok after that i trid
cd c:\windows\system32
copy con g
it works :)

strange ?!

WHy builten commands fails ( "they are "builten" so whats the need of path to set correctly, i think copy con is function of command.com ? am i correct? )
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
Lee W, MVPTechnology and Business Process AdvisorCommented:
NO!  DON'T USE COMMAND.COM!

ALWAYS use CMD.EXE - MUCH better Command Interpreter.

Verify your path environment variable is set correctly.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
If the Path variable is not correct, you can manually adjust it in the System Control Panel (I believe under the Advanced options)
0
 
ravikumarGAuthor Commented:
ok,
copy con is builten command of CMD.exe , then why it depending on Path variable ?
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Because the cmd.exe is in c:\windows\system32 - if your not in that folder, it can't access the program unless it's in the path.
0
 
ravikumarGAuthor Commented:
Hi,
leew i will explain , first - > start -> Run -> cmd

it gives me command prompt there i tried copy con command and it failed showing
error "not internal or external command"

later i reinstalled operating system  and i tried  copy con command
i got error

"C:\>copy con g
copy con testing ............
The I/O operation has been aborted because of either a thread exit or an applica
tion request.
        0 file(s) copied."

ok later tried again and it worked !!!

In above cases , i didn;t set any path variable.
and copy con is builten command of CMD.exe
example : "dir" command will run with out setting any path variable , because it is builten command
in the same way "copy con" also.
0
 
CiaranDolanCommented:
I've no idea what you've done because 'copy' is a builtIN command for the CMD shell and CON is a builtIN device on Windows 2003. There is no reason why this shouldn't work. Do you, by any chance, have a file called CON in that directory or on your path?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now