I want to Autorun my project...

BlitzPlus Forums/BlitzPlus Programming/I want to Autorun my project...

SuperDan(Posted 2003) [#1]
I am nearly finished with a project for work advertising the company.

I would like to AutoRun it from CDROM but I am not sure what to do with my paths to make blitz+ always looks at the correct drive for the support files (bmp's etc).

For example, if I used my CDROM drive letter of H: at work then tried to run at home where my CDROM drive is F: it obviously wouldn't work.

Really what I need to do is find the drive letter of the CDROM, is this possible? Thanks in advance, Dan.


Koriolis(Posted 2003) [#2]
I'd simply say: "why do you need to put the drive letter in your path?"
Use relative paths, not absolutes paths, that should work (?)


Snarty(Posted 2003) [#3]
ProgDir$=SystemProperty("appdir")
Drive$=Left(ProgDir,3)

Should do the trick :)


SuperDan(Posted 2003) [#4]
Thanks all.
I know it is probably very simple to you guys but I am a bit of a dumbass when it comes to programming. My artwork is looking realy good though.

Best regards, Dan