(VB4) how to tell if running in development shell or exe 
Author Message
 (VB4) how to tell if running in development shell or exe

How do you tell if your program is running in the VB Devlopement
environment
or as an exe?  VB4, 32bit, Win95

KB has answer for VB3, but I thought there might be a better way for VB4.

Thanks!
Shawn

__


http://www.*-*-*.com/ ~shawnlee/    Borg Pursuit Screen Saver for Windoz



Sun, 07 Mar 1999 03:00:00 GMT  
 (VB4) how to tell if running in development shell or exe

Quote:

> How do you tell if your program is running in the VB Devlopement
> environment
> or as an exe?  VB4, 32bit, Win95

> KB has answer for VB3, but I thought there might be a better way for VB4.

> Thanks!
> Shawn

> __


> http://www.cris.com/~shawnlee/    Borg Pursuit Screen Saver for Windoz

Here's a simple solution which assumes that your program running in the
VB environment will be different than the directory location of the
executable.

Assume dev directory is c:\users\berkoski

Near the starting point of my code, I can say...

If Instr$("\users\berkoski", App.Path) then
   '-- development environment
Else
   '-- standalone executable
End If

I'm not sure if I got the order of the arguments correct on the Instr$
call, but you get the idea.

--
John Berkoski, Consultant
Comsys Technical Services
Rockville, MD



Sun, 14 Mar 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. how to tell at runtime if ran application from exe or from development environment

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

3. Development mode or running.exe mode?

4. Running as EXE or DEVELOPMENT

5. Run an EXE application in SHELL

6. How to detect (by EXE name) if a non-shelled process is running (32-bit)

7. Wscript.Shell Run method and ntvdm.exe

8. Using Shell Command to Run DOS EXE

9. How to detect (by EXE name) if a non-shelled process is running (32-bit)

10. How do you run SHELL in VB4?

11. code to tell if vb4 running in development environment?

12. *** How to run VB4 EXE ***

 

 
Powered by phpBB® Forum Software