ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

Change Desktop Folder

<< < (3/11) > >>

apfel:
After I set another location nothing happens.
I am looking for a program, which can change DesktopFolder location and
It should refresh the Desktop after Location-Change with the Folders and files in the new Desktop Folder.

But anyway, thx for help!!

belkira:
Try this one....

--- ---;
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
;
;
; Script Function:
; Change the location of the Default Desktop Folder through right-click menu on the systray icon.
;

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#Persistent
Regread, current, HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, Desktop
GoSub,INIREAD
GoSub,TRAYMENU

INIREAD:
IfNotExist,%A_ScriptName%.ini
{
  IniWrite,%current%,%A_ScriptName%.ini,Locations,dir1
  IniWrite,Location 2,%A_ScriptName%.ini,Locations,dir2
  IniWrite,Location 3,%A_ScriptName%.ini,Locations,dir3
  IniWrite,Location 4,%A_ScriptName%.ini,Locations,dir4
}
IniRead,dir1,%A_ScriptName%.ini,Locations,dir1
IniRead,dir2,%A_ScriptName%.ini,Locations,dir2
IniRead,dir3,%A_ScriptName%.ini,Locations,dir3
IniRead,dir4,%A_ScriptName%.ini,Locations,dir4
Return




TRAYMENU:

Menu,Tray,NoStandard
Menu,Tray,DeleteAll
Menu,Tray,Add,%current%,CURRENT
Menu,Tray,Add,
Menu,Tray,Add,"%dir1%",DIR1
Menu,Tray,Add,"%dir2%",DIR2
Menu,Tray,Add,"%dir3%",DIR3
Menu,Tray,Add,"%dir4%",DIR4
Menu,Tray,Add,
Menu,Tray,Add,Edit,EDIT
Menu,Tray,Add,Reload,RELOAD
Menu,Tray,Add,
Menu,Tray,Add,Exit,EXIT
Menu,Tray,Tip,%A_ScriptName%
Menu,Tray,Check,%current%
Return

CURRENT:

DIR1:
RegWrite, REG_EXPAND_SZ, HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, Desktop, %dir1%
Process, close, explorer.exe
run explorer.exe
Reload
Return

DIR2:
RegWrite, REG_EXPAND_SZ, HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, Desktop, %dir2%
Process, close, explorer.exe
run explorer.exe
Reload
Return

DIR3:
RegWrite, REG_EXPAND_SZ, HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, Desktop, %dir3%
Process, close, explorer.exe
run explorer.exe
Reload
Return

DIR4:
RegWrite, REG_EXPAND_SZ, HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, Desktop, %dir4%
Process, close, explorer.exe
run explorer.exe
Reload
Return

EDIT:
Run,%A_ScriptName%.ini
Return

RELOAD:
Reload

EXIT:
ExitApp
[\code]

apfel:
Wow, now the script kills my explorer.exe everytime I change locations, that's not a really good solution.  :(
But now I see the changes.

Edit: Maybe It's a limitation of WinXp you cant overcome... with a such a script.

apfel:
Found a similar discussion on ahk forum with some code snippets, but I cant realy use them.
http://www.autohotkey.com/forum/topic8210.html&highlight=desktop+refresh

belkira:
unfortunately, as far as I know killing explorer is the only way, short of logging out and back in to apply those changes.

If someone knows better let me know and I will see what I can change in this script.

Give me a few minutes here, just looking over that link......

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version