Jump to content

dontask

Active Members
  • Posts

    23
  • Joined

  • Last visited

dontask's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Ill give that a try . Thanks
  2. Ok I removed the @SW_HIDE and now the script crashes and quits with this error ==> Error parsing function call.: Run('xcopy /e /h "' & $file1 & '" "' & $file2 & '"', "",) Run('xcopy /e /h "' & $file1 & '" "' & $file2 & '"', ""^ ERROR BrewManNH I can upload the script somewhere for you to grab if that would help
  3. Thanks for the quick responce . The error is now gone but nothing ever copies. Currently I have this line DirCopy( @UserProfileDir & "\Documents\", $drv & "/backup/" & $str & "\win7\Users\ADMIN\Documents") and it works fine but I find Dircopy to be very in consistent. It doesnt always copy everything so I wanted to switch it to a xcopy command but noting ever copies. I tried this $file1 = @UserProfileDir & "\My Documents\" $file2 = $drv & "/backup/" & $str & "\win7\Users\ADMIN\Documents" Run('xcopy /e /h "' & $file1 & '" "' & $file2 & '"', "", @SW_HIDE) and this Run('xcopy /e /h "' & @UserProfileDir & "\Documents\ & '" $str & "\win7\Users\IBM_ADMIN\Documents"', "", @SW_HIDE ) Neither of the last two show errors but they never copy anything. Thanks again for any help.
  4. Im still very new to Autoit and Im having issues with a an xcopy command. Here is the error. Thanks The error is on the xcopy line ==> Unterminated string.: $file1 = @UserProfileDir & "\My Documents\" $file2 = $drv & "/backup/" & $str & "\win7\Users\IBM_ADMIN\Documents" Run('xcopy /e /h "' & $file1 & '" "' & $file2 & '" , "", @SW_HIDE )
  5. Thanks again for all the great help! I now have no errors and everything compiles fine but when I run it it pops up a display box with the list of files it found and stops,it doesnt copy the files.
  6. OK thanks. One more thing. I did all the above and now I get this error
  7. I searched the forum and cant find FileListToArrayRecursive.au3
  8. OK thanks Ill give it a try.
  9. I am current running this command to copy all file with a .nsf extension but I would like it to also get the files with the same extention in the subfolders of the data directory and keep the path when it copies. Is this doable? Also the subfolders are unknown because its different on everyones computer. Thanks FileCopy("c:\notes\data\*.nsf", "E:\temp\notes\data\")
  10. thanks Ill give that try... Yeah I dug through it for about an hour trying to figure it out
  11. I have a gui box pop up asking the user to pick a backup to restore out of a list of dirs in a folder. Everything works but the gui window stays up after selecting the backup and clicking the button. What command is used to close the window and continue with the rest of the script after the $button1 is pressed? Thanks for any help. ;restore $drv = InputBox("Drive letter","What drive do you want to restore from:", "e:\" ) $array=_FileListToArray($drv & "\backup") $hwnd = GUICreate("restore", 301, 101, 192, 125) $combo = GUICtrlCreateCombo("Select a backup to restore", 66, 20, 169, 25) $Button1 = GUICtrlCreateButton("OK", 114, 56, 73, 25, $WS_GROUP) For $i=1 To Ubound($array)-1 GUICtrlSetData($combo,$array[$i]) Next GUISetState() GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $str = GUICtrlRead ( $combo ) ;end restore menu -----------------------
  12. Thanks !! I was trying to do it with the if then still in there with the While and Wend.
  13. Im have learned a great deal here and the help files but Im having issues with a loop. I tried using While and Wend and have had no luck. This is the part of the script I need to repeat if the process is still running If ProcessExists("firefox.exe") then MsgBox(0,"Running","Looks like firefox is running.Please close firefox so we can back up your bookmarks and settings, then click OK!") Else EndIf If a user clicks OK I want it to loop back up and check again. Then continue with the rest of the script when firefox.exe is not found.
  14. Worked like a champ. Thanks again for your help.
×
×
  • Create New...