未知主机'ûs:批处理中的文件名错误

时间:2015-05-04 13:50:27

标签: batch-file

此错误让我失误 未知主机ûs:Script.txt 。 它正在成功创建Script.txt文件及其所有输入。

下面是代码

 @echo off
   set /p host="enter your hostname to connect to "     
   Echo open %host%>Script.txt


   set /p user="enter your login id "  
   Echo %user%>>Script.txt

  set /p pass="enter your password " 
  Echo %pass%>>Script.txt

  echo cd /osp/local/var/trace/>>Script.txt

  set /p foldername="enter the foldername"
  mkdir %foldername%

  Echo lcd C:\Users\%username%\Desktop\%foldername%\>>Script.txt

  set /p filename="enter the pattern like *.extn or file name with spaces"
  Echo mget /Y %filename%>>Script.txt

  start ftp.exe -s:Script.txt

0 个答案:

没有答案