Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 31981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:41:25+00:00 2026-05-10T13:41:25+00:00

I use rsync to synchronize files to Windows clients in a server agnostic way.

  • 0

I use rsync to synchronize files to Windows clients in a server agnostic way. What methods are available to send the progress of rsync to the parent process for display in a gui progress bar?

I imagine two or three choices exist. (1) Watch STDOUT (2) Watch rsync.exe log file, similar to unix tail (3) Watch rsync console output in memory.

Which one is best/preferred?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T13:41:26+00:00Added an answer on May 10, 2026 at 1:41 pm

    For this type of tasks, I use my own AutoIt script (freeware, Windows only). The script redirects the standard output into a graphical window, displaying it with the ability to scroll back, etc (very useful in long processes like XCOPYs / PKZIPs to check if any error did happen).

    I use AutoIt because it’s free, very easy to use, and can compile quickly into an .EXE. I think it’s an excellent alternative to a complete programming language for this type of tasks. The downside is that it’s for Windows only.

    $sCmd = 'DIR E:\*.AU3 /S'  ; Test command $nAutoTimeout = 10      ; Time in seconds to close window after finish  $nDeskPct = 60          ; % of desktop size (if percent)  ; $nHeight = 480          ; height/width of the main window (if fixed) ; $nWidth = 480  $sTitRun = 'Executing process. Wait....'     ;  $sTitDone = 'Process done'                ;   $sSound = @WindowsDir & '\Media\Ding.wav'       ; End Sound  $sButRun = 'Cancel'                           ; Caption of 'Exec' button $sButDone = 'Close'                            ; Caption of 'Close' button  #include <GUIConstants.au3> #include <Constants.au3> #Include <GuiList.au3>  Opt('GUIOnEventMode', 1)  if $nDeskPct > 0 Then     $nHeight = @DesktopHeight * ($nDeskPct / 100)     $nWidth = @DesktopWidth * ($nDeskPct / 100) EndIf   If $CmdLine[0] > 0 Then     $sCmd = ''     For $nCmd = 1 To $CmdLine[0]         $sCmd = $sCmd & ' ' & $CmdLine[$nCmd]     Next      ; MsgBox (1,'',$sCmd) EndIf  ; AutoItSetOption('GUIDataSeparatorChar', Chr(13)+Chr(10))  $nForm = GUICreate($sTitRun, $nWidth, $nHeight) GUISetOnEvent($GUI_EVENT_CLOSE, 'CloseForm')  $nList = GUICtrlCreateList ('', 10, 10, $nWidth - 20, $nHeight - 50, $WS_BORDER + $WS_VSCROLL) GUICtrlSetFont (-1, 9, 0, 0, 'Courier New')  $nClose = GUICtrlCreateButton ($sButRun, $nWidth - 100, $nHeight - 40, 80, 30) GUICtrlSetOnEvent (-1, 'CloseForm')  GUISetState(@SW_SHOW)   ;, $nForm)  $nPID = Run(@ComSpec & ' /C ' & $sCmd, '.', @SW_HIDE, $STDOUT_CHILD) ; $nPID = Run(@ComSpec & ' /C _RunErrl.bat ' & $sCmd, '.', @SW_HIDE, $STDOUT_CHILD)     ; # Con ésto devuelve el errorlevel en _ERRL.TMP  While 1     $sLine = StdoutRead($nPID)     If @error Then ExitLoop      If StringLen ($sLine) > 0 then         $sLine = StringReplace ($sLine, Chr(13), '|')         $sLine = StringReplace ($sLine, Chr(10), '')         if StringLeft($sLine, 1)='|' Then             $sLine = ' ' & $sLine         endif          GUICtrlSetData ($nList, $sLine)          _GUICtrlListSelectIndex ($nList, _GUICtrlListCount ($nList) - 1)     EndIf Wend  $sLine = ' ||' GUICtrlSetData ($nList, $sLine) _GUICtrlListSelectIndex ($nList, _GUICtrlListCount ($nList) - 1)  GUICtrlSetData ($nClose, $sButDone)  WinSetTitle ($sTitRun, '', $sTitDone) If $sSound <> '' Then     SoundPlay ($sSound) EndIf  $rInfo = DllStructCreate('uint;dword')      ; # LASTINPUTINFO DllStructSetData($rInfo, 1, DllStructGetSize($rInfo));  DllCall('user32.dll', 'int', 'GetLastInputInfo', 'ptr', DllStructGetPtr($rInfo)) $nLastInput = DllStructGetData($rInfo, 2)  $nTime = TimerInit()  While 1     If $nAutoTimeout > 0 Then         DllCall('user32.dll', 'int', 'GetLastInputInfo', 'ptr', DllStructGetPtr($rInfo))         If DllStructGetData($rInfo, 2) <> $nLastInput Then             ; Tocó una tecla             $nAutoTimeout = 0         EndIf     EndIf      If $nAutoTimeout > 0 And TimerDiff ($nTime) > $nAutoTimeOut * 1000 Then         ExitLoop     EndIf      Sleep (100) Wend   Func CloseForm()     Exit EndFunc 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use rsync to synchronize two directories in both directions. I refer
I use rsync to upload websites to a server. I use it something like
Is there any Rsync API or other way to use it in own app,
I use cwRsync to sync up some file from Windows to Ubuntu. This process
I'm trying to use rsync on Windows 7. I installed cwRsync and tried to
I use rsync to mirror a remote server. It is said that using a
I'm trying to rsync files between two servers with rsync -avlzp /source user@server:/destination but
I use the following rsync command to backup my MySQL data to a machine
I'm trying to use the result of ls in other commands (e.g. echo, rsync):
In my TCL script I use rsync command and unfortunately it is refusing to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.