【问题标题】:Converting to .exe don’t present the correct output转换为 .exe 不显示正确的输出
【发布时间】:2014-08-26 06:24:15
【问题描述】:

我需要获取无线 SSID 并在其旁边添加优先级顺序。 它应该看起来像这样

1   SSID    work
2   SSID    home
3   SSID    TEST

我做了以下

Set /a c=0
netsh wlan show profile >temp
for /f "tokens=5" %%a in ('find  "All User Profile" temp') do call :processline %%a
goto :END
goto :eof
:processline
set /a c=c+1
echo.  %c%         %*
goto :eof
:eof

它似乎工作正常,但是当我将程序编译为可执行文件时不再工作了 任何建议

【问题讨论】:

    标签: batch-file batch-processing


    【解决方案1】:

    好的,成功解决了我的问题。现在编译成exe也可以了。

    netsh wlan show profile >temp
    
    for /f "tokens=5" %%i in ('find  "All User Profile" temp') do (
    echo.  !x!            %%i
    set /a x=!x!+1
    )
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-29
      • 1970-01-01
      • 2015-10-28
      • 1970-01-01
      • 2019-03-31
      • 1970-01-01
      • 1970-01-01
      • 2018-05-21
      相关资源
      最近更新 更多