|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
trying to execute a simple command line, need helpNewbie here.
I am used to using vbscript but trying vb.net in vs2003. I am trying to add a button click event, like this: Dim LaunchApp As Integer LaunchApp = Shell("""c:\program files\myapp\bin\newapp.exe"" /cmdline http://myapps/file.asp /logon") AppActivate(LaunchApp) This variable works like a champ in vbscript but I can't figure out why nothing happens with the button click, there is no error, but nothing comes up. Ideas? CP11,
I don't know either but this newsgroup is full of this kind of code. \\\ Dim p As New Process Dim pi As New ProcessStartInfo pi.arguments = "c:\windows\win.ini" pi.FileName = "notepad.exe" p.startinfo = pi p.Start() //// I hope this helps, Cor Show quoteHide quote "CP11" <chrispar***@gmail.com> schreef in bericht news:1151630896.607431.268250@d56g2000cwd.googlegroups.com... > Newbie here. > > I am used to using vbscript but trying vb.net in vs2003. > > I am trying to add a button click event, like this: > > Dim LaunchApp As Integer > LaunchApp = Shell("""c:\program files\myapp\bin\newapp.exe"" > /cmdline http://myapps/file.asp /logon") > AppActivate(LaunchApp) > > This variable works like a champ in vbscript but I can't figure out why > nothing happens with the button click, there is no error, but nothing > comes up. Ideas? > "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> schrieb: .... or even shorter:> I don't know either but this newsgroup is full of this kind of code. > > \\\ > Dim p As New Process > Dim pi As New ProcessStartInfo > pi.arguments = "c:\windows\win.ini" > pi.FileName = "notepad.exe" > p.startinfo = pi > p.Start() > //// \\\ Process.Start("notepad.exe", "C:\WINDOWS\WIN.INI") /// -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
ActiveX.exe and RaiseEvent
Late Binding Return Value Weirdness String and int Issue MDI Form loading Hindi numbers in Graphics class Visual Basic 6.0, Enterprise Edition ASP.NET: VSNET2003 to VSNET2005 Global.asax.vb in Visual Studio .NET 2005 determine which radiobutton in a groupbox is checked? Datefield from variable into a datefield in an access b |
|||||||||||||||||||||||