ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Shell comand (https://www.excelbanter.com/excel-programming/428908-shell-comand.html)

pls123

Shell comand
 

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

Mike H

Shell comand
 
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


"pls123" wrote:


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 ??..


tx all



All times are GMT +1. The time now is 05:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com