| | |
Run installed program without path
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
currently this is working
also with this
but if i try this
i will get an error since i did not declare the path
Is there any way how to run a executable installed on your machine without putting the path? if yes, can you please give me an example on how to do that, thanks
VB.NET Syntax (Toggle Plain Text)
System.Diagnostics.Process.Start("notepad.exe")
also with this
VB.NET Syntax (Toggle Plain Text)
System.Diagnostics.Process.Start("C:\Program Files\FileZilla FTP Client\filezilla.exe")
but if i try this
VB.NET Syntax (Toggle Plain Text)
System.Diagnostics.Process.Start("filezilla.exe")
i will get an error since i did not declare the path
Is there any way how to run a executable installed on your machine without putting the path? if yes, can you please give me an example on how to do that, thanks
If you don't give the entire path of the program, then Windows will search specific directories for that program.
You can change which directories it searches, but the common ones are c:\windows, c:\windows\windows\system32, etc.
notepad.exe happens to be in c:\windows\windows32, so the computer is able to find it when it searches for it.
In order to have the computer run firezilla.exe, you have to add the directory it is in to the list windows searches. Here is a link on how to do it manually:
http://www.computerhope.com/issues/ch000549.htm
Here is a link on how to set it from the command prompt:
http://www.computerhope.com/pathhlp.htm
You can change which directories it searches, but the common ones are c:\windows, c:\windows\windows\system32, etc.
notepad.exe happens to be in c:\windows\windows32, so the computer is able to find it when it searches for it.
In order to have the computer run firezilla.exe, you have to add the directory it is in to the list windows searches. Here is a link on how to do it manually:
http://www.computerhope.com/issues/ch000549.htm
Here is a link on how to set it from the command prompt:
http://www.computerhope.com/pathhlp.htm
Last edited by timothybard; Mar 4th, 2009 at 9:24 am. Reason: Added additional link
![]() |
Similar Threads
- Application Installation Path (VB.NET)
- VIRUS ALERT! in taskbar and I cant see the C drive or run (Viruses, Spyware and other Nasties)
- After Malware, IE and FF won't run (Viruses, Spyware and other Nasties)
- Msn wont run - all logs needed are included (Viruses, Spyware and other Nasties)
- Getting a PDF File to run from VB6 (Visual Basic 4 / 5 / 6)
- Java Problem with running program (Java)
- I can't remove about:blank (Viruses, Spyware and other Nasties)
- www.lookfor.cc search still buggin me (Viruses, Spyware and other Nasties)
Other Threads in the VB.NET Forum
- Previous Thread: how to search a word in Micro Soft documents(Word, Excel,Powerpoint)-urgent?
- Next Thread: How to edit parts of a line
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net .net2008 2008 access advanced application array basic beginner browser button buttons center click client code combo convert cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic eclipse excel exists fade filter forms function html images input lib listview map mobile module monitor msaccess net number objects open panel pdf picturebox picturebox2 port position print printing problem read regex remove right-to-left save search serial settings shutdown socket sorting sqldatbase sqlserver survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol validation vb vb.net vb2008 vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web webbrowser winforms winsock wpf wrapingcode xml year





