Re: Windows 7 question
Mark Schonewille (off forum) came up with the best answer (I think), not requiring a shell command. put item 1 of specialfolderpath(system) into x and strip off the /WINDOWS text ! And this works for all Windows systems that I know. Sorry for coming late to the party here, but there's a gotcha you need to know about: Although the specialFolderPath() approach will give you a path, you can't count on /WINDOWS being in the path - you can give the main Windows directory any name you like during the install of ANY version of Windows (so far). However since most people don't install Windows but just get it preloaded on PCs they purchase, it is almost always WINDOWS. For example, I used to have a PC which dual-booted Windows ME or Windows XP (yes, this was a long time ago), and I had one directory named WINDOWS and the other WINXP, and based on the boot choice it would pick the proper folder. So if I booted in XP and got the specialFolderPath(system), it returned C:/WINXP. So to truly make it work, you need to not assume anything other than the specialFolderPath will give you a path that you can delete the last /-delimited item from to get what *should* be (until Microsoft changes it) the system volume: set the itemDel to / put item 1 to -2 of specialFolderPath(system) into tSysDrive Just my 2 cents, Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ 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
Windows 7 question
Hi from Beautiful Brittany, I wrote : I use : if the platform = Win32 then put line 1 of the volumes into x which doesn't work on Windows 7 (gives me diskette A: ?) In the face of this problem, how can I pick up the systems disk ID in a Windows 7 system ? Mark Schonewille (off forum) came up with the best answer (I think), not requiring a shell command. put item 1 of specialfolderpath(system) into x and strip off the /WINDOWS text ! And this works for all Windows systems that I know. Thanks Mark ! This post is just in case anybody else runs into the problem - Francis Nothing should ever be done for the first time ! ___ 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
Windows 7 Question
Hi from Beautiful Brittany, I know little about PC's :) But now I have my answers. By searching in Google for windir and systemroot, I found systemdrive which does exactly what I want ! Thanks Paul, thanks Steve ! -Francis Nothing should ever be done for the first time ! ___ 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
Windows 7 Question
Hi from Beautiful Brittany I develop my stacks on my Mac, but have a Splashstack.exe for running them on PC's. In order to find the systems disk (so I can build complete paths to my external files), I use the command if the platform = Win32 then put line 1 of the volumes into field PCDrive and build the paths starting with field PCDrive. Disk C (the usual systems disk) was always the first entry in the volumes list in Windows XP, etc.. In Windows 7, I now find A (the floppy diskette used if the user didn't want to boot from the hard drive). In the comments section of the Volumes section of the Rev Dictionary, I find : Disks which are physically installed or inserted into a disk drive, but are not currently mounted, do not appear in the list returned by the volumes function. If this is so, why does floppy disk A (inexistant) appear at the head of the Volumes list ? Second question - does the platform command return Win32 for Windows 7 systems ? (I don't have a Windows 7 system available to test my stacks !) In the face of this problem, how can I pick up the systems disk ID in a Windows 7 system ? I am running Revolution 4.0.0 - Build 950 on an iMac OS 10.5.8 Many thanks for any pointers -Francis Nothing should ever be done for the first time ! ___ 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
RE: Windows 7 Question
dero...@ix.netcom.com From: Francis Nugent Dixon I develop my stacks on my Mac, but have a Splashstack.exe for running them on PC's. In order to find the systems disk (so I can build complete paths to my external files), I use the command if the platform = Win32 then put line 1 of the volumes into field PCDrive and build the paths starting with field PCDrive. Disk C (the usual systems disk) was always the first entry in the volumes list in Windows XP, etc.. In Windows 7, I now find A (the floppy diskette used if the user didn't want to boot from the hard drive). In the comments section of the Volumes section of the Rev Dictionary, I find : Disks which are physically installed or inserted into a disk drive, but are not currently mounted, do not appear in the list returned by the volumes function. If this is so, why does floppy disk A (inexistant) appear at the head of the Volumes list ? Second question - does the platform command return Win32 for Windows 7 systems ? (I don't have a Windows 7 system available to test my stacks !) In the face of this problem, how can I pick up the systems disk ID in a Windows 7 system ? I am running Revolution 4.0.0 - Build 950 on an iMac OS 10.5.8 Many thanks for any pointers There are various environment variables in Windows that you might use. Both windir and SystemRoot point to the Windows OS's directory, typically C:\WINDOWS. I don't recall if SystemRoot was there all along, but windir was there since the early days of Windows; indeed, it was spelled with lower case letters so that the DOS SET command couldn't manipulate it. There's also ProgramFiles, which typically refers to C:\Program Files. Not sure if it's possible to configure Windows to put this on a different drive from the OS, but some Googling might come up with some more info on this. -- Ciao, Paul D. DeRocco Paulmailto:p ___ 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