Indigo Rose Software

Go Back   Indigo Rose Software Forums > Visual Patch 3.5 > Visual Patch 3.5 Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2008
Feersum Feersum is offline
Forum Member
 
Join Date: Jan 2006
Posts: 4
Rename a Start Menu Programs Folder shortcut?

I'm pulling my hair out trying to rename a shortcut in a Start Menu Programs Folder.

File.Rename("C:\\OldFile.ext", "C:\\NewFile.ext"); doesn't really cut it as would not work for vista.

Can anyone give me an example using something like e.g. SHF_STARTMENUPROGRAMS_COMMON

Thanks
Reply With Quote
  #2  
Old 05-06-2008
ShadowUK ShadowUK is offline
Forum Member
 
Join Date: Oct 2007
Location: London, UK
Posts: 1,275
File.Rename(Shell.GetFolder(SHF_STARTMENUPROGRAMS_ COMMON).."\\Internet Explorer.ink", "Shell.GetFolder(SHF_STARTMENUPROGRAMS_COMMON).."\ \Internet Exploder.ink");

Something like that?
Reply With Quote
  #3  
Old 05-06-2008
Feersum Feersum is offline
Forum Member
 
Join Date: Jan 2006
Posts: 4
thanks ShadowUK, but it doesn't work for me. It would probably work if the shortcut was in the Start Menu Programs directory...but it's in a folder in the Start Menu Programs directory.

...adding
File.Rename(Shell.GetFolder(SHF_STARTMENUPROGRAMS_ COMMON).."\\My MOD Folder ", "Uninstall My MOD 3.0", Shell.GetFolder(SHF_STARTMENUPROGRAMS_COMMON).."\\ My MOD Folder ", "Uninstall My MOD 3.2");

screws up the File.Rename syntax
Reply With Quote
  #4  
Old 05-07-2008
ShadowUK ShadowUK is offline
Forum Member
 
Join Date: Oct 2007
Location: London, UK
Posts: 1,275
File.Rename takes two arguments, Source and destination. Try playing around with only 2 arguments.
Reply With Quote
Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
URL in Start Menu Programs subfolder . . . fsgenesis Setup Factory 7.0 Discussion 3 12-21-2007 10:14 AM
multiple locations. wasim21k AutoPlay Media Studio 6.0 15 04-04-2007 10:43 AM
Exe's in Folder Reference appear in Start menu Dan Ullman Setup Factory 7.0 Discussion 10 09-01-2005 04:55 PM
Shortcut in Start menu ThunderBoy Setup Factory 7.0 Discussion 2 07-20-2005 08:52 AM
HOWTO: Create Nested Shortcuts in the Start Menu Support Setup Factory 6.0 Knowledge Base 0 09-24-2002 11:26 AM


All times are GMT -6. The time now is 10:00 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software