Search the Community
Showing results for tags 'progress display in cmd window'.
-
Hi All, I am new to AutoIT. Currently I am trying to write a program to copy a directory(Including sub directories recursively). The executable is from command line. Executable File compiled out of DirectCopy.au3 file name is DirectCopy.exe. Copy function is working excellent, based on the arguments provided in the command line followed by DirectCopy.exe. I am trying to get a progress bar/line in cmd window to show while DirectCopy.exe command is running. I have tried and browsed many posts to achieve printing progress line on the command line during folder copy.(not progress bar in GUI, this code is i saw in many ways) Please help/guide me!!!!!! Command Line is C:\>DirectCopy.exe /c c:\temp D:\temp_files Code is as follows: Local $temp=0 If UBound($CmdLine) > 1 Then if $CmdLine[1] = "/c" Then if UBound($CmdLine) > 3 Then if DirExist($CmdLine[2]) Then ConsoleWrite("Source Directory is Invalid" & @LF) ConsoleWrite("Tip: Folder name should not contain Space(s)" & @LF) Else if DirExist($CmdLine[3]) Then ConsoleWrite("Destination Directory is Invalid" & @LF) ConsoleWrite("Tip: Folder name should not contain Space(s)" & @LF) Else $temp=DirCopy($CmdLine[2],$CmdLine[3],1) If $temp = 0 Then ConsoleWriteError("Something went wrong... Error occurred while trying to copy..." & @LF) EndIf EndIf EndIf Else ConsoleWrite("Invalid/Insufficient no. of aruguments" & @LF) EndIf EndIf EndIf