Author |
Message |
Jonny Tight Lips
![](http://www.deftone.com/misc/johnny_tightlips.jpg)
|
Posted: Wed Oct 06, 2004 11:36 am Post subject: File checking |
|
|
Is there a comand that will alow a program to tell where itself is on the computer ie the file extention stuff (C:\\blabla\\blalala\\test.t) becasue when I transfer the program from onme computer to another I have to go and edit where all the files are so is there a way for the program to do that by itself? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
Posted: Wed Oct 06, 2004 12:31 pm Post subject: (No subject) |
|
|
I was going to suggest using Dir.Current but it seems that the function returns the path as a string using forward slashes instead of double back slashes, which must be utterly useless. Just so you know, when the file hasn't been saved anywhere (ie, just code pasted into the editor) it'll return "C:/". |
|
|
|
|
![](images/spacer.gif) |
Jonny Tight Lips
![](http://www.deftone.com/misc/johnny_tightlips.jpg)
|
Posted: Wed Oct 06, 2004 3:10 pm Post subject: (No subject) |
|
|
That was the right thing I was looking for. The forward slash is the same as a double backslash so it works. Thanx for the help Coutsos |
|
|
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
Posted: Wed Oct 06, 2004 3:29 pm Post subject: (No subject) |
|
|
Whoa! You can use a single forward slash "/" instead of the double backslash "\\"! I never realised that, this is so cool. |
|
|
|
|
![](images/spacer.gif) |
|