App deployment on Windows
G. Wolfgang Gaich
gwolfgang at gaich.de
Mon Jul 5 06:13:30 EDT 2010
There is a simple way:
put char 1 of $SystemDrive
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.
> - Francis
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode