mark_land
asked on
shell in VB.NET
whats the syntax to call shell in VB.NET
Shell "c:\Program Files\Adobe\Acrobat 4.0\Reader\acrord32.exe /t" & "C:\Program Files\Cache\20050824083257 00001\2608 2626_1.PDF " & " PEERNET.DRV eTIFF 6.0"
Thanks, Regards-Mark
Shell "c:\Program Files\Adobe\Acrobat 4.0\Reader\acrord32.exe /t" & "C:\Program Files\Cache\20050824083257
Thanks, Regards-Mark
it is
Process.Start("c:\Program Files\Adobe\Acrobat 4.0\Reader\acrord32.exe /t" & "C:\Program Files\Cache\20050824083257 00001\2608 2626_1.PDF " & " PEERNET.DRV eTIFF 6.0")
Process.Start("c:\Program Files\Adobe\Acrobat 4.0\Reader\acrord32.exe /t" & "C:\Program Files\Cache\20050824083257
System.Diagnostics.Process .Start("c: \Program Files\Adobe\Acrobat 4.0\Reader\acrord32.exe /t" & "C:\Program Files\Cache\20050824083257 00001\2608 2626_1.PDF " & " PEERNET.DRV eTIFF 6.0")
ASKER
this doesnt work please help experts
Dim ProcID As Integer
Dim strShell As String
strShell = "H:\mycommandfile\Test.bat "
ProcID = Shell(strShell, AppWinStyle.MinimizedFocus )
or
Proc = Shell("H:\mycommandfile\Te st.bat", AppWinStyle.NormalNoFocus, True)
Dim strShell As String
strShell = "H:\mycommandfile\Test.bat
ProcID = Shell(strShell, AppWinStyle.MinimizedFocus
or
Proc = Shell("H:\mycommandfile\Te
Shell "c:\hello.bat", vbNormalFocus
Or this if you do not want it to show
Shell "c:\hello.bat", vbHide
Or this if you do not want it to show
Shell "c:\hello.bat", vbHide
"c:\Program Files\Adobe\Acrobat 4.0\Reader\acrord32.exe /t" & "C:\Program Files\Cache\20050824083257 00001\2608 2626_1.PDF " & " PEERNET.DRV eTIFF 6.0"
also if you were to build this string you have no spaces after the ampersigns
also if you were to build this string you have no spaces after the ampersigns
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
good luck