0

hi,
How do you make a exe open and run in a different directory in vb6?
so my exe is in the directory
D:\test.exe
and want it to run in the directory
C:\
without copying the file there

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by drabsch
0

could you do it if i allowed you to copy the file there and it got deleted when you end the program

0

VB6 will not allow you to do this, you should look into .Net that allows you to have an AppDomain Shadow Copying that you can run your application from "C:\MyApp\" but the binaries get copied then loaded into a CachePath (which you specify) where your application is actually running. This way you can update your binaries without worrying about handles still open to them, this is basically doing what you want it to do.

Check out this: http://msdn.microsoft.com/en-us/library/ms404279.aspx

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.