Tag: bash

  • bashscript – Restart explorer without losing open windows

    When we have to restart explorer.exe, usually we have many folders opened, which get closed in the process. There is a way to re-open these folders automatically after restarting explorer using bat script: @echo off setlocal enabledelayedexpansion powershell @^(^(New-Object -com shell.application^).Windows^(^)^).Document.Folder.Self.Path >> openedpaths.txt taskkill /im explorer.exe /f start explorer.exe FOR /F "tokens=*" %%f IN (%~dp0openedpaths.txt)…

  • Tự động sao lưu khi tệp và thư mục khi có sự thay đổi với AutoIt và xcopy

    Giới thiệu Đôi khi chúng ta cần sao lưu (backup) tất cả các files/folders mà có thay đổi (modified) đến một nơi để lưu trữ, điều này có thể là có các phương án khác khả thi không kém đó là dùng phần mềm (vd FreeFileSync, hay các ổ cứng lưu trữ có hỗ trợ…