Page 1 of 1
Visual Basic EASY help
Posted: Thu Feb 09, 2006 8:51 pm
by Viral
Hey!
I'm starting to work with VB 2005.
I've got the design thing figured out, but I'm making myself a little APP that will boot up ANY applicaation that I desire.
When I press a button, it will launch: Simple.
Anyone Can Help..?
Posted: Thu Feb 09, 2006 9:11 pm
by Tural
Posted: Thu Feb 09, 2006 9:17 pm
by Viral
ok, so, that's perfect.
Where is the file path?
like...C://Program Files/ece/ecsw/ec?
I want all the apps INCLUDED in the application
EDIT: I got this from a tutorial here:
Code: Select all
Process.Start("directory it will be in.exe")
What's the directory:: IF I wanted all the applications included in the program, where would the dir be? where do I put the applications?
Posted: Thu Feb 09, 2006 9:46 pm
by Tural
I'm not sure about VB2005, but in VB6 it was like this:
Code: Select all
Shell(App.Path & "\Apps\DotHalo.exe")
Dothalo is an example, but App.Path is what you would want, so it would be wherever the Application is, and then Apps directory, then DotHalo.exe
Posted: Thu Feb 09, 2006 10:02 pm
by Viral
Ok, i'll try this, and update later.
ALSO: I'm adding a progress bar, to show the loading time. Is there a code for that?
(so when the user clicks the app, the progress bar shows the loading time)
Posted: Fri Feb 10, 2006 2:50 pm
by Viral
Ok, HUGE goodness
I've got a button setup for DotHalo!
I've got the following code:
Code: Select all
Process.Start("/apps/dothalo/DotHalo.exe")
I've got the dir's all lined up, NO problems there, but it's not executing dothalo.
I want it to launch from my VB .exe.
Any suggestions :\?
I can't get this working.
Correct my code?
Posted: Fri Feb 10, 2006 3:00 pm
by L
How would you make it turn of your computer? what code?
Posted: Fri Feb 10, 2006 3:04 pm
by Viral
w...what?
Here is my delemia:
I have a VB .exe file I just made, which has a button linking to DotHalo.
Here is my code:
Code: Select all
Process.Start("/apps/dothalo/DotHalo.exe")
so, when the user clicks the button, it starts up the application, DotHalo. However, when Itried this out, it didn't work, giving me an error. I checked my dir, and everything is good.
My .exe Dir:
- = Folder
:::::::::::::::::::::::::::::::::::::
vbproject.exe
-apps
--dothalo
---DotHalo.exe
:::::::::::::::::::::::::::::::::::::
Can someone help me out?
the code again:
Code: Select all
Process.Start("/apps/dothalo/DotHalo.exe")