Visual Basic EASY help

Technical Chatter here.
Post Reply
Viral




Recreator

Posts: 54
Joined: Sun Aug 28, 2005 4:26 pm
Contact:

Visual Basic EASY help

Post 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..?
User avatar
Tural




Conceptionist Acolyte Bloodhound Recreator
Socialist Connoisseur Droplet Scorched Earth
Grunge

Posts: 15628
Joined: Thu Jun 16, 2005 3:44 pm
Location: Lincoln, NE
Contact:

Post by Tural »

Code: Select all

Shell(Application Path)
Viral




Recreator

Posts: 54
Joined: Sun Aug 28, 2005 4:26 pm
Contact:

Post 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?
User avatar
Tural




Conceptionist Acolyte Bloodhound Recreator
Socialist Connoisseur Droplet Scorched Earth
Grunge

Posts: 15628
Joined: Thu Jun 16, 2005 3:44 pm
Location: Lincoln, NE
Contact:

Post 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
Viral




Recreator

Posts: 54
Joined: Sun Aug 28, 2005 4:26 pm
Contact:

Post 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)
Viral




Recreator

Posts: 54
Joined: Sun Aug 28, 2005 4:26 pm
Contact:

Post 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?
L





Posts: 320
Joined: Sat Jan 28, 2006 7:01 am
Location: Xylophilia (n.) - A person or persons that have sexual intercourse with a xylophone
Contact:

Post by L »

How would you make it turn of your computer? what code?
Removed by request of user.
Viral




Recreator

Posts: 54
Joined: Sun Aug 28, 2005 4:26 pm
Contact:

Post 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")
Post Reply