App running as exe or dev ? 
Author Message
 App running as exe or dev ?

Hi all

Is there a way of telling whether a VB4/5 program is being run from
development or as an exe ??

TIA

Martin

PS If poss, please e-mail any replies. Thanks



Tue, 23 May 2000 03:00:00 GMT  
 App running as exe or dev ?



Quote:
> Is there a way of telling whether a VB4/5 program is being run from
> development or as an exe ??

This isn't the most elegant solution...but this is what I do.

I always create my app in a directory different from where I put my
executable. Then I put this line in my program:

If Instr(App.Path, "DevDir") > 0 then '(This is being run from development)

Hope this helps.



Thu, 25 May 2000 03:00:00 GMT  
 App running as exe or dev ?

A slightly more elegant solution uses App.ExeName.  From the IDE, App.ExeName
returns the name of the VB project.  Make sure the project name and the exe
name are different and you've got your indicator.

Lee Weiner
weiner AT fuse DOT net


Quote:



>> Is there a way of telling whether a VB4/5 program is being run from
>> development or as an exe ??

>This isn't the most elegant solution...but this is what I do.

>I always create my app in a directory different from where I put my
>executable. Then I put this line in my program:

>If Instr(App.Path, "DevDir") > 0 then '(This is being run from development)

>Hope this helps.



Thu, 25 May 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How tell if running in exe or vb4 Dev environment

2. Running a non-exe app in VB4

3. URGENT App won't run as EXE ?

4. get running apps exe names

5. How to run VB app (exe) inside IE5.5

6. How to get App.HelpFile from Exe my control is running in

7. EXE App Crash when running

8. App.EXE Won't Run Revisited

9. App.EXE Won't Run

10. How to Run VB EXE From Within VB App

11. Microsoft demo app Modlist.exe won't run in Winnt directory

12. how to detect app running by exe name

 

 
Powered by phpBB® Forum Software