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