草庐IT

restoffilepath

全部标签

windows - 如何使用 ftp 将变量传递到批处理文件的 %0 部分?

我有一个批处理文件,我希望能够从命令行调用它,例如:myBatch.battestParam该批处理文件如下:setsid=%1C:\Windows\System32\ftp.exe-s:%0gotodoneopenservernameusernamepasswordget'FilePath%sid%restoffilepath'targetPath\%sid%MyName.txtbye:done但是,我似乎无法让FilePath%sid%restoffilepath部分正常工作-我相信这是因为%0将输入视为文字,但我不是100%确定。%sid%变量未展开。在这种情况下,我基本上想让F