[Actionscript3] 纯文本查看 复制代码
#NoTrayIcon
If FileExists("D:") Then
DirCreate("D:\Users")
DirCreate("D:\Users\Pictures")
DirCreate("D:\Users\Videos")
DirCreate("D:\Users\Downloads")
DirCreate("D:\Users\Desktop")
DirCreate("D:\Users\Music")
DirCreate("D:\Users\Documents")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","{374DE290-123F-4565-9164-39C4925E467B}","REG_SZ","D:\Users\Downloads")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop","REG_SZ","D:\Users\Desktop")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","My Music","REG_SZ","D:\Users\Music")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","My Pictures","REG_SZ","D:\Users\Pictures")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","My Video","REG_SZ","D:\Users\Videos")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Personal","REG_SZ","D:\Users\Documents")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","{0DDD015D-B06C-45D5-8C4C-F59713854639}","REG_EXPAND_SZ","D:\Users\Pictures")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","{35286A68-3C57-41A1-BBB1-0EAE73D76C95}","REG_EXPAND_SZ","D:\Users\Videos")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","{374DE290-123F-4565-9164-39C4925E467B}","REG_EXPAND_SZ","D:\Users\Downloads")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","{754AC886-DF64-4CBA-86B5-F7FBF4FBCEF5}","REG_EXPAND_SZ","D:\Users\Desktop")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","{7D83EE9B-2244-4E70-B1F5-5393042AF1E4}","REG_EXPAND_SZ","D:\Users\Downloads")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","{A0C69A99-21C8-4671-8703-7934162FCF1D}","REG_EXPAND_SZ","D:\Users\Music")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","{F42EE2D3-909F-4907-8871-4C22FC0BF756}","REG_EXPAND_SZ","D:\Users\Documents")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Desktop","REG_EXPAND_SZ","D:\Users\Desktop")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","My Music","REG_EXPAND_SZ","D:\Users\Music")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","My Pictures","REG_EXPAND_SZ","D:\Users\Pictures")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","My Video","REG_EXPAND_SZ","D:\Users\Videos")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Personal","REG_EXPAND_SZ","D:\Users\Documents")
ToolTip("个人文件夹转移完毕(3)",0,0,"提示",1)
Sleep(1000)
ToolTip("个人文件夹转移完毕(2)",0,0,"提示",1)
Sleep(1000)
ToolTip("个人文件夹转移完毕(1)",0,0,"提示",1)
Sleep(1000)
ProcessClose("explorer.exe")
Sleep(500)
ShellExecuteWait("explorer.exe")
Exit 0
Else
ToolTip("取消转移个人文件夹(5)",0,0,"D盘不存在",3)
Sleep(1000)
ToolTip("取消转移个人文件夹(4)",0,0,"D盘不存在",3)
Sleep(1000)
ToolTip("取消转移个人文件夹(3)",0,0,"D盘不存在",3)
Sleep(1000)
ToolTip("取消转移个人文件夹(2)",0,0,"D盘不存在",3)
Sleep(1000)
ToolTip("取消转移个人文件夹(1)",0,0,"D盘不存在",3)
Sleep(1000)
Exit 0
EndIf