Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[HELP] Process.Start
#1
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: -->
#2
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]
My Blog | My Setup | My Videos | Have a wonderful day.
#3
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
#4
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!
My Blog | My Setup | My Videos | Have a wonderful day.


Forum Jump:


Users browsing this thread: 1 Guest(s)