Calling CMD.EXE in NT

Kevin Wright kwright@aspectdv.com
Sun Jan 31 23:52:00 GMT 1999


Todd,

I have cmd.exe in my path, thus:
~ > type cmd
cmd is hashed (/d/WINNT/system32/cmd)

Because it is on my D: drive which is in the mount table for cygnus, 
it only needs one "/"

Example of usage:

~ > cmd /c dir

gives me the "dos" version of dir as opposed to cywin's which is 
the same as ls.

Hope this helps,

Kevin

> -----Original Message-----
> From: owner-gnu-win32@cygnus.com [ mailto:owner-gnu-win32@cygnus.com]On
> Behalf Of Todd Goodman
> Sent: Sunday, January 24, 1999 6:45 PM
> To: gnu-win32@cygnus.com
> Subject: Calling CMD.EXE in NT
> 
> 
> Can someone give me a pointer on running CMD.EXE.
> 
> For example, I've tried typing '//c/WINNT/SYSTEM32/CMD /c dir' in
> at the bash prompt and I always get 'The syntax of the command is
> incorrect.'
> 
> I know I've seen others do this.
> 
> Thanks,
> 
> Todd Goodman
> -
> For help on using this list (especially unsubscribing), send 
> a message to
> "gnu-win32-request@cygnus.com" with one line of text: "help".
> 
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list