I have created a .bat
file and wanted to convert it to .exe
.
自从我这样做以来,这些命令就不起作用了。我该怎么办?
这是脚本,它可以运行,但并非所有命令都有效:
@shift
@echo off
title Amon_tech temp cleaner
color 09
echo Hello %username%!
echo
set /p answer= Press Enter to run tool:
:pause
:Run tool
cls
:loop
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
rd %temp% /s /q
md %temp%
del /s /f /q C:\Windows\Prefetch\*.*
del /s /f /q C:\Windows\temp\*.*
del /s /f /q C:\Windows\System32\temp\*.*
del /s /f /q %USERPROFILE%\appdata\local\temp\*.*
set /p answer= Press ALT+F4 to close tool:
This question has already be asked (and answerd) on annother forum: https://superuser.com/questions/868340/how-can-i-convert-a-windows-batch-script-to-a-exe
由于这是另一个论坛,因此我不能将问题重复。