|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
File.Rename(Shell.GetFolder(SHF_STARTMENUPROGRAMS_ COMMON).."\\Internet Explorer.ink", "Shell.GetFolder(SHF_STARTMENUPROGRAMS_COMMON).."\ \Internet Exploder.ink");
Something like that? |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
File.Rename takes two arguments, Source and destination. Try playing around with only 2 arguments.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
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.








Linear Mode

