so i made a script like this
Code: Select all
#SingleInstance, Force
SetBatchLines, -1
Gui, Add, Edit, x32 y60 w190 h20 vSOURCE,
Gui, Add, Text, x32 y40 w90 h20 , Recording Source
Gui, Add, Edit, x32 y100 w190 h20 vDESTINATION,
Gui, Add, Text, x32 y80 w90 h20 , Destination
Gui, Add, Button, x232 y60 w70 h20 gSRC, Browse
Gui, Add, Button, x232 y100 w70 h20 gDEST, Browse
Gui, Add, Edit, x32 y140 w110 h20 vUSER,
Gui, Add, Text, x32 y120 w90 h20 , User ID
Gui, Add, Button, x152 y140 w70 h20 gDOWNLOAD, Download
Gui, Show, x215 y232 h184 w340,
Return
GuiClose:
ExitApp
Return
SRC:
FileSelectFolder, server
GuiControl,,SOURCE,%server%
Return
DEST:
FileSelectFolder, dest
GuiControl,,DESTINATION,%dest%
Return
DOWNLOAD:
GuiControlGet,USER
IfExist, %server%\2017-08-09\%USER%
FileCreateDir,%dest%\%USER%\AUG 09\
FileCopy, %server%\2017-08-09\%USER%\*.* , %dest%\%USER%\AUG 09\
Return
I need help for these tasks
1: if user folder found and copy was done , then go to next date ie 2017-08-10, and repeat the task, i want it to run for all the 31 days of august
2: if given user folder data not found in the 2017-08-09 , log into a text file and go for next date ie 2017-08-10
is there any better/automatic way for doing this
awaiting for responce
Thanks for your great help in advance