Blitz3D syntax to indicate system disk

Blitz3D Forums/Blitz3D Beginners Area/Blitz3D syntax to indicate system disk

Biggy(Posted 2008) [#1]
Sorry, a little question: in my b3d code, how can I indicate generic OS disk (that in different computer may be C:, E: etc)?
I remember something as "%............%" ....
Tnx
GB


GfK(Posted 2008) [#2]
Huh?

Do you mean a network drive? Or what else?


Yan(Posted 2008) [#3]
%SYSTEMDRIVE%

??


Biggy(Posted 2008) [#4]
Hi, Ian;
I need distribute a Blitz3D program on many different computer, but they may have different OS architecture i.e.: OS disk may be C., E: etc.
I can't know now which architecture may have the destination computer, but on installation I must be certainly that the software install itself in OS disk and manage its files and archives in the same disk, OK?
Where I can find a syntax manual for these generic and no nominal nstructions (related to OS, or I/O devices, etc. I think ...)
Tnx, Ian.
Bye
GB


Yan(Posted 2008) [#5]
I'm having a hard time understanding your posts I'm afraid, so I'm not sure if this is what you require exactly.

Environment Variables


You're writing your own installer?


xtremegamr(Posted 2008) [#6]
@Yan: B3D supports Windows environment Variables?

@Biggy: What do you mean, "different OS architecture"? Are you trying to distribute a Blitz3d program to a different computer using an OS different from Windows?


Yan(Posted 2008) [#7]
@Yan: B3D supports Windows environment Variables?
Yup...

http://www.blitzbasic.com/b3ddocs/command.php?name=GetEnv&ref=2d_a-z
http://www.blitzbasic.com/b3ddocs/command.php?name=SetEnv&ref=2d_a-z


PowerPC603(Posted 2008) [#8]
I think he means that not everyone has his Windows installed on the C: drive.
Some people install their Windows on the d: drive or some other drive.
He propably needs to install some DLL's, which must be in the system32 directory of Windows, but he doesn't know how to find out on which drive Windows is installed.
So, he doesn't know where to place the needed files.

I would help him, but I don't know how to do that either.


GfK(Posted 2008) [#9]
I think he means that not everyone has his Windows installed on the C: drive
Of course, it'd be much more helpful if he'd managed to find time within the last week to spend a couple of minutes explaining the problem properly, then we wouldn't need to guess.


xtremegamr(Posted 2008) [#10]
If that's what you mean, Biggy, then 1) it would have been great if you had said that to begin with, and 2) you can use SystemProperty(). SystemProperty("systemdir") will return the directory of the system dir, so you can just use that to install whatever you want.

http://www.blitzbasic.com/b3ddocs/command.php?name=SystemProperty&ref=2d_a-z