Shell comand

P

pls123

Hi all !! im using this and it seems working fine..
x = Shell("C:\Userguide.exe")

but somebody suggetsed me this...that makes the same thing but opening
the dos prompt..
x = Shell("cmd.exe /c C:\Userguide.exe", 1) ...can anybody tell me... what
" ,1 " means ??

WOuld this one work fine too ??..
Shell ("C:\Userguide.exe")

tx all
 
M

Mike H

Hi,

The optional numeric switch of 1 gives the programme called with shell the
focus. The switch has several options, all of which can be found under Shell
in Excel help.


Shell("C:\WINDOWS\CALC.EXE", 1) wouldn't work

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top