Use path with spaces in batch file using WinSCP

前端 未结 1 617
旧巷少年郎
旧巷少年郎 2020-12-11 09:58

I have created WinSCP batch file for deleting files on remote server. It\'s working fine, but it\'s not working with folder with spaces.

For example, the below batch

相关标签:
1条回答
  • 2020-12-11 10:22

    Wrap the path with spaces to double double-quotes:

        "cd ""/home/test/Desktop/india & nepal""" ^
    

    See https://winscp.net/eng/docs/commandline#syntax

    0 讨论(0)
提交回复
热议问题