PC Review
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 CMD Promt
How come this command line does not work??
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 CMD Promt
How come this command line does not work??
![]() |
How come this command line does not work?? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
shell "c:\command.com /c c:\mcafee\sdat4295.exe /silent"
TIA |
|
|
|
#2 |
|
Guest
Posts: n/a
|
>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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 > >. > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
"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 |
|
|
|
#6 |
|
Guest
Posts: n/a
|
"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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

