|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
And I'm pretty sure under Windows ME aswell.
getSpecialFolder("desktop all") works. getSpecialFolder("startmenu all"), getSpecialFolder("programs all") and getSpecialFolder("startup all") don't.... in addition to the getSpecialFolder("program files").... and I nearly had a heart attack when I figured out why. If you are on Windows98, go to C:\Windows\All Users. In here you will find a few folders. One of which is "Desktop". Put any file you want in there and it will show up on your desktop, hence the reason why getSpecialFolder("desktop all") works. Next, go into "Start Menu". Put any file you want in there, or in Start Menu\Programs, or in Start Menu\Programs\Startup and they WON'T show up when you click the Start button.... HOWEVER (and this is the clincher), if you have put an executable into the C:\Windows\All Users\Start Menu\Programs\Startup folder and you restart your PC, the exe will be launched at startup!!!! ;D ;D ;D ;D I've therefore had to write a workaround to it, which seems to work for Windows 98, and is an adaptation of the code posted in my other thread: Code:
function getStartProgramsFolder() {
var str = Shell.getSpecialFolder("programs all");
if (str == undefined) {
str = Shell.expandEnvironmentStrings("%WINDIR%");
// OR
// var key = new RegKey("HKLM\\software\\microsoft\\windows\\currentversion");
// str = key.getValue("SystemRoot").data;
str = str + "\\Start Menu\\Programs";
}
return str;
}
http://new.wavlist.com/movies/140/ws-yesterday.wav (btw, please post a known bugs list if at all possible.... it would really help things in future) Cheers, G. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|