Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Reference <http://www.visualbasicscript.com/tm.aspx?high=&m=94260&mpage=1#94272>
- var net = new ActiveXObject("WScript.Network"),
- fso = new ActiveXObject("Scripting.FileSystemObject"),
- gDrive = (fso.FolderExists("g:\\") ? fso.GetFolder("g:\\") : null),
- gGames = "g:\\savedgames",
- cGames = "C:\\Users\\" + net.UserName + "\\Desktop\\savedgames"
- savedGames = (gDrive ?
- fso.FolderExists(gGames) ?
- fso.GetFolder(gGames) :
- fso.CreateFolder(gGames)
- : fso.FolderExists(cGames) ?
- fso.GetFolder(cGames) :
- fso.CreateFolder(cGames)),
- agbPath = "C:\\Users\\Niels\\AppData\\Roaming\\Rovio\\Angry Birds",
- agbFolder = fso.FolderExists(agbPath) ? fso.GetFolder(agbPath) : null,
- rovioPath = "C:\\Users\\Niels\\AppData\\Roaming\\Rovio",
- flashPath = "C:\\Users\\" + net.UserName + "\\AppData\\Roaming\\"
- + "Macromedia\\Flash Player\\#SharedObjects\\87V4ZJLP\\"
- + "dl.dropbox.com\\u\\12616360",
- flashFolder = fso.FolderExists(flashPath) ?
- fso.GetFolder(flashPath) : null;
- if(flashFolder)
- fso.CopyFolder(flashPath, (gDrive ? gGames : cGames) )
- if(agbFolder)
- fso.CopyFolder(rovioPath, (gDrive ? gGames : cGames) )
Advertisement
Add Comment
Please, Sign In to add comment