There is a simple way:

put char 1 of $SystemDrive


Wolfgang


Am 05.07.2010 11:12, schrieb Francis Nugent Dixon:
Hi from Beautiful Brittany,

This complements Mark's mail  .......

This should be X:\program files, where X is the start-up drive.

I needed to build file paths on Mac OSX and on Windows,
in my cross-platform SplashStack, so I needed the system
Disk ID for Windows (which MAY NOT be "C").

On Windows XP, I used

"put line 1 of the volumes into MyPCDrive"

which gave the system disk, whatever it was !

On Windows 7, the first entry in the volumes list is "A"
(for some strange reason), and so I had to find an
alternative solution.

Mark came up with a work-around :

"put item 1 of specialfolderpath("system") into Temp"

Then strip out non-useful info to reveal system disk ID.

A sure-fire way of building file paths.

FWIW

- Francis


_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to