PreludeOfDeath Posted February 29, 2008 Share Posted February 29, 2008 So I want to copy ONE file from one area on my computer to another area... Pretty sure i can use AutoIt to do it. The computer is locked down like no other tho.I cannot view hidden files. I cannot view anything outside my 'user directory'.I want to copy a Line Rider save file...On my Home PC, this is the code that would copy the file:FileCopy("C:\Documents and Settings\Matt\Application Data\Macromedia\Flash Player\#SharedObjects\XH4YK4P5\www.lelezard.com\savedLines.sol", "C:\Documents and Settings\Matt\My Documents\Line Rider")But, at my Work PC, I cannot view the RANDOM folder created after the #SharedObjects folder. How can I read the name of the folder?So the code on the Work PC would be:FileCopy("C:\Documents and Settings\Matt\Application Data\Macromedia\Flash Player\#SharedObjects\********\www.lelezard.com\savedLines.sol", "C:\Documents and Settings\Matt\My Documents\Line Rider") Link to comment Share on other sites More sharing options...
SpookMeister Posted February 29, 2008 Share Posted February 29, 2008 Are you certain that there is a policy in effect that prevents you from viewing hidden files? Have you attempted going to: My Computer|Tools|Folder Options|View and selecting Show hidden files and folders? If this is all grayed out, then perhaps you could speak to your system administrator to request that access. [u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote] Link to comment Share on other sites More sharing options...
Monamo Posted February 29, 2008 Share Posted February 29, 2008 So I want to copy ONE file from one area on my computer to another area... Pretty sure i can use AutoIt to do it. The computer is locked down like no other tho. I cannot view hidden files. I cannot view anything outside my 'user directory'. I want to copy a Line Rider save file... On my Home PC, this is the code that would copy the file: FileCopy("C:\Documents and Settings\Matt\Application Data\Macromedia\Flash Player\#SharedObjects\XH4YK4P5\www.lelezard.com\savedLines.sol", "C:\Documents and Settings\Matt\My Documents\Line Rider") But, at my Work PC, I cannot view the RANDOM folder created after the #SharedObjects folder. How can I read the name of the folder? So the code on the Work PC would be: FileCopy("C:\Documents and Settings\Matt\Application Data\Macromedia\Flash Player\#SharedObjects\********\www.lelezard.com\savedLines.sol", "C:\Documents and Settings\Matt\My Documents\Line Rider") Not sure what kind of policy restrictions you might have (if any) at work, but this may be of some use (untested - but the basic premise is there): CODE #include <File.au3> $sProfile = FileSelectFolder("Select the user profile root folder to use...","",0,"C:\Documents and Settings") If @error Then Exit $sLineRiderfile = "\www.lelezard.com\savedLines.sol" $sFlashRoot = $profile &"\Application Data\Macromedia\Flash Player\#SharedObjects\" MsgBox(0,"",$profile) If FileExists($sFlashRoot) Then $aFolders = _FileListToArray($sFlashRoot,"*",2) EndIf If IsArray($aFolders) Then For $i = 1 To $aFolders[0] If FileExists($sFlashRoot &$aFolders[$i] &$sLineRiderfile) Then FileCopy($sFlashRoot &$aFolders[$i] &$sLineRiderfile,$sProfile &"\My Documents\Line Rider\",8) ExitLoop EndIf Next EndIf - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
PreludeOfDeath Posted February 29, 2008 Author Share Posted February 29, 2008 Are you certain that there is a policy in effect that prevents you from viewing hidden files? Have you attempted going to: My Computer|Tools|Folder Options|View and selecting Show hidden files and folders? If this is all grayed out, then perhaps you could speak to your system administrator to request that access. It is not even there... lolz... I know I can access the Hidden Files though, I have been able to see the Size of the 'Macromedia' folder. Not sure what kind of policy restrictions you might have (if any) at work, but this may be of some use (untested - but the basic premise is there): CODE #include <File.au3> $sProfile = FileSelectFolder("Select the user profile root folder to use...","",0,"C:\Documents and Settings") If @error Then Exit $sLineRiderfile = "\www.lelezard.com\savedLines.sol" $sFlashRoot = $profile &"\Application Data\Macromedia\Flash Player\#SharedObjects\" MsgBox(0,"",$profile) If FileExists($sFlashRoot) Then $aFolders = _FileListToArray($sFlashRoot,"*",2) EndIf If IsArray($aFolders) Then For $i = 1 To $aFolders[0] If FileExists($sFlashRoot &$aFolders[$i] &$sLineRiderfile) Then FileCopy($sFlashRoot &$aFolders[$i] &$sLineRiderfile,$sProfile &"\My Documents\Line Rider\",8) ExitLoop EndIf Next EndIf Ah, thank you! I will try that tonight and let you know! Link to comment Share on other sites More sharing options...
PreludeOfDeath Posted February 29, 2008 Author Share Posted February 29, 2008 Not sure what kind of policy restrictions you might have (if any) at work, but this may be of some use (untested - but the basic premise is there): CODE #include <File.au3> $sProfile = FileSelectFolder("Select the user profile root folder to use...","",0,"C:\Documents and Settings") If @error Then Exit $sLineRiderfile = "\www.lelezard.com\savedLines.sol" $sFlashRoot = $profile &"\Application Data\Macromedia\Flash Player\#SharedObjects\" MsgBox(0,"",$profile) If FileExists($sFlashRoot) Then $aFolders = _FileListToArray($sFlashRoot,"*",2) EndIf If IsArray($aFolders) Then For $i = 1 To $aFolders[0] If FileExists($sFlashRoot &$aFolders[$i] &$sLineRiderfile) Then FileCopy($sFlashRoot &$aFolders[$i] &$sLineRiderfile,$sProfile &"\My Documents\Line Rider\",8) ExitLoop EndIf Next EndIf w00t it worked! I love you! lolz! Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now