批處理轉換成exe后功能不實現代碼功能是在指定位置創建指定批處理代碼如下nclick="copycode($('code0'));">復制代碼
- echo $computer=%cname% > %USERPROFILE%Desktoptest.bat
- for /f delims=: %%i in ('findstr /n ^:1$ %~f0') do (
- more +%%i %~f0 >> %USERPROFILE%Desktoptest.bat
- )
- :1
- powershell -executionpolicy remotesigned -file %USERPROFILE%Desktoptest.ps1