BP Forums
[HELP] Process.Start - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+----- Forum: Programming Help (https://bpforums.info/forumdisplay.php?fid=9)
+----- Thread: [HELP] Process.Start (/showthread.php?tid=748)



[HELP] Process.Start - flatfish - 02-22-2013

Been watching the wonderful Visual Basic tutorials on youtube and they are great.

But ive been follow other tuorials on how to use Process.Start and all of them say just do this.....
Code:
Process.Start("C:\")


That should launch explore into your C drive, but not for me i get the error.....
Code:
'Start' is not a member of 'Process'

The only way i can get it to work is by using Diagnostics like so.....
Code:
Diagnostics.Process.Start("C:\")
or like this.....
Code:
Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = "C:\"
p.Start()

Anyone have a idea what's going on here im stumpt for idea's ?

Thanks <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed" /><!-- s:oops: -->


Re: [HELP] Process.Start - brandonio21 - 02-23-2013

This is occurring because the "Process" object is actually located within the "System.Diagnostics" library. Therefore, in order to actually call
[code2=vbnet]Process.Start("C:\")[/code2]

You must first put this on top of all your code:
[code2=vbnet]Imports System.Diagnostics[/code2]


Re: [HELP] Process.Start - flatfish - 02-24-2013

lol how stupid do i feel right now <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed" /><!-- s:oops: -->

Now why didn't i think of that ?

Thanks man love your tutorials


Re: [HELP] Process.Start - brandonio21 - 02-25-2013

flatfish Wrote:lol how stupid do i feel right now <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed" /><!-- s:oops: -->

Now why didn't i think of that ?

Thanks man love your tutorials
Thanks for watching them! And don't feel stupid - everyone needs to learn somehow!

Best of luck to ya!