Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-27-2003, 10:08 AM
Member
 
Join Date: Sep 2003
Posts: 95
Default some getSpecialFolder commands do NOT work correctly under Windows 98.

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;
}
While I appreciate then that this is not completely the fault of SWFKit:

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.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:10 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.