sequencial and random files

04-13-2001, 12:07 PM
this is my proglem:
how do i create a file in the directory that my program is in without knowing the actual directory?

for example if i compile my program and sedn it to someone when they run it i want the program to create this file in the same directory as the program is in... i know how to create files etc... but i need to know this.. THANX in advance

=LP= images/icons/crazy.gif

04-13-2001, 01:16 PM
Try using App.Path, for example:
<PRE> strOutputFilename = App.Path & "\output.txt"</PRE>It'll give you your project folder in development mode (if you've saved your project) or the folder our EXE is in when you've compiled it.


04-13-2001, 03:28 PM


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum