Ứng dụng bên ngoài

Ứng dụng bên ngoài

Sổ sử dụng FreeFileSync:
Bắt đầu nhanh Dòng lệnh Cài đặt so sánh Giờ tiết kiệm ánh sáng Bỏ qua tệp Cài đặt chuyên gia Ứng dụng bên ngoài Các macro Hiệu suất Đồng bộ thời gian thực Đồng bộ thời gian thực: Chạy dưới dạng dịch vụ Lập lịch các công việc theo lô Cài đặt đồng bộ Cài đặt (S)FTP Những mẹo và thủ thuật Ký tự ổ đĩa thay đổi Quản lý phiên bản Sao chép bóng thể tích
Ứng dụng bên ngoài

Khi bạn nhấp đúp vào một trong các dòng trên hộp thoại chính, FreeFileSync sẽ mở trình duyệt tập tin của hệ điều hành theo mặc định:
Windows:explorer.exe /select, "%local _ path%" & exit 0
macOS:open -R "%local _ path%"
Linux:xdg-open "$(dirname "%local _ path%")"
Để tùy chỉnh hành vi này, hoặc tích hợp các ứng dụng bên ngoài khác vào FreeFileSync, hãy điều hướng đến Menu → Tools → Options → Customize context menu và thêm hoặc thay thế một lệnh.
Tất cả các mục có thể được truy cập nhanh chóng bằng cách nhấn các phím số 0–9 tương ứng hoặc thông qua menu ngữ cảnh được hiển thị sau khi nhấp chuột phải. Mục đầu tiên cũng có thể được thực thi bằng cách nhấp đôi vào một mục.
Ngoài các **Biểu thức đại diện** thông thường, còn có các biểu thức đại diện đặc biệt sau:
MacroDescription





%item _ path%Full file or folder path
%local _ path%Creates a temporary local copy for files located on SFTP and MTP storage. Otherwise identical to %item _ path% for local files and network shares.
%item _ name%File or folder name
%parent _ path%Parent folder path
  • To refer to the item on the opposite side, append " 2 " to the macro name:
    %item _ path 2 %, %local _ path 2 %, %item _ name 2 %, %parent _ path 2 %.
  • To generate a list including all selected items (separated by space), append " s " to the macro name:
    %item _ path s %, %local _ path s %, %item _ name s %, %parent _ path s %.
Examples
  • Start a file content comparison tool:Windows: WinMerge
    "C: \ Program Files (x86) \ WinMerge \ WinMergeU.exe" "%local _ path%" "%local _ path2%"
    macOS: opendiff (requires Xcode)
    opendiff "%local _ path%" "%local _ path2%"
    Ubuntu: kompare (sudo apt install kompare)
    kompare "%local _ path%" "%local _ path2%"
  • Show file in Windows Explorer:
    explorer.exe /select, "%local _ path%" & exit 0
    Note
    Explorer.exe does not set an exit code, but FreeFileSync will show an error message if it does not find exit code = 0 ("Success"). To mitigate, append ( & ) command exit 0 to set the exit code explicitly.
  • Open command prompt for the selected item:
    start cmd.exe /k cd /D "%parent _ path%"
    Note
    FreeFileSync hides the console window, so start opens a new window. cmd.exe /k runs the following command without immediately exiting the console. cd navigates to the directory, even if it's on a different volume ( /D ).
  • Copy item path to Clipboard (as alternative to CTRL + C)
    echo %item _ path%| clip
  • Write list of selected file paths to a text file:
    echo %item _ path% >> %csidl _ Desktop% \ file _ list.txt
  • Preview files using Quick Look on macOS:
    qlmanage -p "%local _ path%"
  • Pass a list of selected files to a script as command line arguments:
    C: \ my-script.cmd "%local _ path s %"
Ghi chú Các macro cần được bảo vệ bằng dấu ngoặc kép nếu chúng giải quyết thành các đường dẫn tập tin có thể chứa ký tự trắng.