By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,998 Members | 2,773 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,998 IT Pros & Developers. It's quick & easy.

Executing File In Same Directory...

P: 3
I need my application to run a file that will be in the same folder as it ( i dont wanna just use shell ("C:\Launcher.exe i want the users to be able to install anywhere). Ive tried so many different methods but i just cant seem to be able to get it working...

app = Launcher.exe
file to run= client.exe


I appreciate it..thx.
Sep 16 '07 #1
Share this Question
Share on Google+
1 Reply


VBPhilly
P: 95
I need my application to run a file that will be in the same folder as it ( i dont wanna just use shell ("C:\Launcher.exe i want the users to be able to install anywhere). Ive tried so many different methods but i just cant seem to be able to get it working...

app = Launcher.exe
file to run= client.exe


I appreciate it..thx.
in vb6:

app.path 'returns the path of the application.

example:
Expand|Select|Wrap|Line Numbers
  1. shell app.path & "\Launcher.exe"
  2.  
in .net, it may be:

Application.StartupPath
Sep 16 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.