Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find the .exe folder in VB5

Status
Not open for further replies.

peterd51

Technical User
Feb 22, 2005
109
GB
Hi,

sorry this is such a simple question but I've had an hour searching here and not found an answer.

How would I find the folder that the program is running in?

For instance, one user might put the .exe on the c-drive while another puts it in their 'documents', and for this particular program I don't want to force the user to put it in a specific place. But it will need to save/load files to/from the same folder...

I have considered using the 'special' folders for storing the files but I'm not sure they'd work the same in Vista or later versions as they do in XP.

Regards
Peter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top