PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 CMD Promt How come this command line does not work??

Reply

How come this command line does not work??

 
Thread Tools Rate Thread
Old 29-09-2003, 08:41 PM   #1
Patrick
Guest
 
Posts: n/a
Default How come this command line does not work??


shell "c:\command.com /c c:\mcafee\sdat4295.exe /silent"

TIA


  Reply With Quote
Old 29-09-2003, 08:53 PM   #2
Walter Schulz
Guest
 
Posts: n/a
Default Re: How come this command line does not work??


>shell "c:\command.com /c c:\mcafee\sdat4295.exe /silent"


What does "shell" mean?
command.com is not located in c:\ but in %Systemdrive%\system32.
Because this path is included in %Path% you can delete "C:\"

Ciao, Walter
  Reply With Quote
Old 29-09-2003, 09:08 PM   #3
Tom Lavedas
Guest
 
Posts: n/a
Default How come this command line does not work??

Assuming you mean the Shell method from VB6, the problem
is probably due to the fact that command.com is not
resident in the root directory. Even if it were it's just
not a good idea to code it that way. Use the %COMSPEC%
environment variable instead to reference the command
processor.

shell "%comspec% /c c:\mcafee\sdat4295.exe /silent"

Then it will work on any system, even those that have
Cmd.exe as a command processor, residing in the
WINNT\System32 folder.

Tom Lavedas
===========

>-----Original Message-----
>shell "c:\command.com /c c:\mcafee\sdat4295.exe /silent"
>
>TIA


  Reply With Quote
Old 29-09-2003, 09:30 PM   #4
Patrick
Guest
 
Posts: n/a
Default How come this command line does not work??

Thanks for the quick reply. If I were to put the
mentioned shell statement in a batch file. Would it work?


>-----Original Message-----
>Assuming you mean the Shell method from VB6, the problem
>is probably due to the fact that command.com is not
>resident in the root directory. Even if it were it's

just
>not a good idea to code it that way. Use the %COMSPEC%
>environment variable instead to reference the command
>processor.
>
> shell "%comspec% /c c:\mcafee\sdat4295.exe /silent"
>
>Then it will work on any system, even those that have
>Cmd.exe as a command processor, residing in the
>WINNT\System32 folder.
>
>Tom Lavedas
>===========
>
>>-----Original Message-----
>>shell "c:\command.com /c c:\mcafee\sdat4295.exe /silent"
>>
>>TIA

>
>.
>

  Reply With Quote
Old 29-09-2003, 09:35 PM   #5
Matthias Tacke
Guest
 
Posts: n/a
Default Re: How come this command line does not work??


"Patrick" <phanva@hotmail.com> schrieb im Newsbeitrag
news:098201c386c0$24187010$a401280a@phx.gbl...
> Thanks for the quick reply. If I were to put the
> mentioned shell statement in a batch file. Would it work?
>
> >
> > shell "%comspec% /c c:\mcafee\sdat4295.exe /silent"


Shell is the VB6 Command

in a batch file could simply use:

"%comspec% /c c:\mcafee\sdat4295.exe /silent

hth
Matthias


  Reply With Quote
Old 29-09-2003, 09:59 PM   #6
Ritchie
Guest
 
Posts: n/a
Default Re: How come this command line does not work??

"Matthias Tacke" <Matthias@Tacke.de> wrote in message news:bla1i5$bf4$02$1@news.t-online.com...
> in a batch file could simply use:
> "%comspec% /c c:\mcafee\sdat4295.exe /silent


Or just:-

c:\mcafee\sdat4295.exe /s

--
Ritchie, undo for mail


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off