|
-
Jun 27th, 2005, 09:09 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Exe Location
can someone please tell me the function to get the path where the exe thats running resides and the refrence library needed
-
Jun 27th, 2005, 09:15 AM
#2
Re: Exe Location
You could use the GetFullPathName API to retrieve the path of an .exe, but I don't know of any way to be able to tell what reference libraries have been compiled into it.
-
Jun 27th, 2005, 10:07 AM
#3
Thread Starter
Addicted Member
Re: Exe Location
can't use api's...working with excel...would there be anything in scripting runtime...
-
Jun 27th, 2005, 10:43 AM
#4
Re: Exe Location
You can use APIs with Excel. Are you needing the exe path of Excel or a VB6 program or ???
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 27th, 2005, 10:46 AM
#5
Thread Starter
Addicted Member
Re: Exe Location
i'm making an exe in vb6. i want to get the location where the exe is residing run time. can't use api cos i wud be making an exe without the installation wizard. and api libraries are not installed on the system where i wud be putting it
-
Jun 27th, 2005, 10:52 AM
#6
Re: Exe Location
Oh, then in vb6 you can just use the App.Path to get the location of your running exe file.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 27th, 2005, 10:55 AM
#7
Thread Starter
Addicted Member
Re: Exe Location
would i need any reference libraries
-
Jun 27th, 2005, 11:05 AM
#8
Re: Exe Location
Just the standard MS VB runtime library same one as your program requires.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 27th, 2005, 11:06 AM
#9
Thread Starter
Addicted Member
Re: Exe Location
i'll check that out..thanks a lot
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|