That's perfect Shawn.
Marv









That's perfect Shawn.
Marv
458 TGF to CTF 2.5+ Examples and games
http://www.castles-of-britain.com/mmf2examples.htm

Originally Posted by Shawn
Ahhhh! Why aren't you telling it what drive to save it on to!?
Working as fast as I can on Fusion 3









No need if you just want to save it to the directory of the application.
Marv
458 TGF to CTF 2.5+ Examples and games
http://www.castles-of-britain.com/mmf2examples.htm

What!? That's like saving to the path "\Documents and Settings\All Users\" !!! It doesn't exist because you didn't say which drive to save it on! Like C: or E:Originally Posted by nivram
Working as fast as I can on Fusion 3









LB, using apppath$ automatically saves the application to the application directory. If you would like to save it to another directory, yes you specify the drive and etc. No need to put extra code in if you do not need it. Test it.
Marv
458 TGF to CTF 2.5+ Examples and games
http://www.castles-of-britain.com/mmf2examples.htm

That's not AppPath$, sorry you must have misunderstood.Originally Posted by Shawn
You can't save a file to a directory without knowing what drive to use.
Working as fast as I can on Fusion 3











I know it's not AppPath. What I'm saying is, I use Appdir$ and it works fine. I've done it several times.Originally Posted by LB
What Marvin posted is correct. Saving to the same directory as your application does not require AppPath. Appdir does it just fine. Appdir means just that, "Application Directory".

Yes but it doesn't include the drive, AppDir$ will resture something like "\Program Files\My Software\" but AppPath$ will return the same, but with the drive, like "C:\Program Files\My Software\" or "E:\Program Files\My Software\".
You can save with that and it works fine? For me I either get an error, it doesn't save, or it just saves to the root directory of the drive it's on, like C:\ or E:\
Working as fast as I can on Fusion 3











For me it's always saved in the same directory as the application. I never get an error.Originally Posted by LB
For portability purposes, I don't like to tie my files down to a full directory path.
Take HTML for example. When embedding an image in a page, you don't have to type the entire URL like <img src="http://www.clickteam.com/afolder/anotherfolder/yetanotherfolder/image.jpg"> if the images and html file are in the same directory, you simply just type <img src="image.jpg">
I'm not sayinng AppPath$ doesn't work, but I've never had a problem using AppDir$ by itself. An application loaded into memory knows how to read and write to it's own directory without hard coding the entire application path on the hard drive. Works in programming as well, not just MMF2.

Oh, well try teling that to the File object. :p
Working as fast as I can on Fusion 3