View Single Post
  #4981 (permalink)  
Old 04-28-2010, 10:32 PM
boggsie's Avatar
boggsie
b00nsquad
Offline
Location: Central Ohio
 
Join Date: Mar 2008
Posts: 1,359
Reputation: 2295
boggsie is a VIPboggsie is a VIPboggsie is a VIPboggsie is a VIPboggsie is a VIPboggsie is a VIPboggsie is a VIPboggsie is a VIPboggsie is a VIPboggsie is a VIPboggsie is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: ║MightyROM.com║ ║Windows Phone®║ ║Sense UI 2.5║

Alright you haxors ... I need some mortscript help.

I am trying to write a mortscript to organize the start menu for OF and FF. I don't know if anybody would want it, but I figured I would give it a shot.

Well, I can't figure out why the HTC_*.lnk items in the start menu won't delete after I have tried to move them. The move command ends up copying them, so rather that beat my head against a wall on that, I figured I would just do an explicit delete and the darned files are still there.

I've attached the entire mortscript as it stands now, but here is a code snippet:

Code:
If ( FileExists( "\Windows\Start Menu\Programs\HTC_Music.lnk" ) )
SetFileAttribute("\Windows\Start Menu\Programs\HTC_Music.lnk","hidden", FALSE)
SetFileAttribute("\Windows\Start Menu\Programs\HTC_Music.lnk","readonly", FALSE)
SetFileAttribute("\Windows\Start Menu\Programs\HTC_Music.lnk","system", FALSE)
SetFileAttribute("\Windows\Start Menu\Programs\HTC_Music.lnk","archive", FALSE)
Move( "\Windows\Start Menu\Programs\HTC_Music.lnk","\Windows\Start Menu\Programs\Multimedia","TRUE"  )
Delete( "\Windows\Start Menu\Programs\HTC_Music.lnk")
EndIf
As I mentioned, the "Move" ends up copying the item, so I thought that by adding an explicit delete, it would clear things up, but it didn't.

Best regards,
-boggsie
Attached Files
File Type: zip OrgStartMenu.zip (1.4 KB, 5 views) Click for barcode!
__________________
Mine has theft deterrent!
HOPE