Jump to content

FasseBear

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by FasseBear

  1. I think this post will help I had not seen this post yet. http://www.autoitscript.com/forum/index.php?showtopic=43978
  2. I know how to do this in a batch file in dos but this is my first autoit script and I would really like to learn how to do it here. I have searched all over the place but can't find what I am looking for. this is my code so far. I want to run this script once a week then on the other days compare folder 1 to the temp folder and move only the new or changed files to the dated directory. Thanks to JdeB for helping me with the create date folder he showed me how to pass a variable to the dircreate(). Thanks again JdeB. #include <Date.au3> ;----------------------------------------------- ;variable section ;---------------------------------------------- local $size local $dnow local $dirdate local $comdir ;-------------------------------------------------- ;Pulls now date from date.au3 file. Dim $dnow = _NowCalcDate() ;Set location for creation of dated directory dim $dir = "c:\backup\" ;Creates temp folder to hold files for backing up ;DirCreate ( "c:\backup\temp" ) ;Copys files from one directory to another. DirCopy ("c:\batch\1", "c:\backup\temp" ,0) ;Create directory with todays date ;Us to remove / so date is all one string $dirdate = (StringReplace($dnow(),"/","")) $comdir = ($dir & $dirdate) DirCreate($comdir) ;Copies files from temp to created date directory DirCopy ("c:\batch\1", $comdir ,1) ;Finds the directory size for us $size = dirGetSize ( $comdir,0) Exit
  3. Thank you so much I am really new to scripts and this program looks great. So I thought I would learn on this. Thank you so much it helped me a great deal just getting put in the right direction. When I am done I will paste the code back on here. Thanks again.
  4. How do I create a Directory with todays date on it. I have tried the dirmove and all of those I just don't know how to pass a var into the dircreate function or the dircopy function. thank you in advance.
×
×
  • Create New...