PC Review


Reply
Thread Tools Rate Thread

How come this command line does not work??

 
 
Patrick
Guest
Posts: n/a
 
      29th Sep 2003
shell "c:\command.com /c c:\mcafee\sdat4295.exe /silent"

TIA


 
Reply With Quote
 
 
 
 
Walter Schulz
Guest
Posts: n/a
 
      29th Sep 2003

>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
 
Tom Lavedas
Guest
Posts: n/a
 
      29th Sep 2003
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
 
Patrick
Guest
Posts: n/a
 
      29th Sep 2003
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
 
Matthias Tacke
Guest
Posts: n/a
 
      29th Sep 2003

"Patrick" <(E-Mail Removed)> schrieb im Newsbeitrag
news:098201c386c0$24187010$(E-Mail Removed)...
> 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
 
Ritchie
Guest
Posts: n/a
 
      29th Sep 2003
"Matthias Tacke" <(E-Mail Removed)> wrote in message news:bla1i5$bf4$02$(E-Mail Removed)...
> 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Work Offline - command line switch Jeff Kerber Microsoft Outlook Discussion 3 1st Nov 2005 05:36 PM
Shutdown.exe command line using -l -t <nn> doesn't work IanB Windows XP Help 1 26th Sep 2004 07:16 AM
Getting command line to work in XPE kevin Windows XP Embedded 4 27th Jul 2004 05:24 AM
command line ftp won't work Steve T. Windows XP Networking 0 6th Dec 2003 06:39 PM
My Script to run a Command-Line from ASP does not work Lucas Cowald Microsoft ASP .NET 0 23rd Oct 2003 08:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:13 PM.