|
-
Jul 12th, 2006, 01:29 PM
#1
Thread Starter
Lively Member
[RESOLVED] App.Path??
Hi All
Just a quick Question
I've seen some code that has something to do with app.path.
I want to be able to use my app and open a file in that same directory.But if my app gets moved onto another computer i still must have it open that file. I don't want to have to put in the path for each computer.
Thanks for any help
Reston
-
Jul 12th, 2006, 01:34 PM
#2
Re: [RESOLVED] App.Path??
App.Path is the path to the directory in which running exe resides.
so in your code you put:
VB Code:
Open App.Path & "\myfile.txt" For Input As #1
or whatever.
Is that what you were asking?
-
Jul 12th, 2006, 01:35 PM
#3
Thread Starter
Lively Member
Re: [RESOLVED] App.Path??
I was messing around and figured it out
Open App.Path & "U-CUT3.t" For Output As #iOutputFile
-
Jul 12th, 2006, 01:35 PM
#4
Re: [RESOLVED] App.Path??
app.path will give you the installed path of your project. you dont need to put the path for each computer.
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Jul 12th, 2006, 01:36 PM
#5
Thread Starter
Lively Member
Re: [RESOLVED] App.Path??
Thanks for the quick reply
-
Jul 12th, 2006, 01:37 PM
#6
Re: [RESOLVED] App.Path??
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
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
|