问题
I'm not sure why my batch script is not working I don't know too much but I get the basics.
I've tried Googling other answers but it's difficult when your stuff is different. I feel it's the ASCII art thats wrong and is what's messing it up.
@echo off
title VHACK V2
prompt Client #306011 $G
color 3
echo VHACK V2
echo "Reform whats formed"
echo >=> >=> >=> >=> >> >=> >=> >=>
echo >=> >=> >=> >=> >>=> >=> >=> >=> >=>
echo >=> >=> >=> >=> >> >=> >=> >=> >=>
echo >=> >=> >=====>>=> >=> >=> >=> >>=>>
echo >=> >=> >=> >=> >=====>>=> >=> >=> >=>
echo >===> >=> >=> >=> >=> >=> >=> >=> >=>
echo >=> >=> >=> >=> >=> >===> >=> >=>
echo Welcome to VHACK V2, press any key to continue to VHACK
pause
cls
color 7
echo VHACK V2 Loading.
timeout /T 1 /NOBREAK
echo VHACK V2 Loading..
timeout /T 1 /NOBREAK
echo VHACK V2 Loading...
timeout /T 1 /NOBREAK
echo VHACK V2 Loading Services .
timeout /T 1 /NOBREAK
echo VHACK V2 Loading..
timeout /T 1 /NOBREAK
echo VHACK V2 Loading...
timeout /T 1 /NOBREAK
echo VHACK V2 Loading.
timeout /T 1 /NOBREAK
echo VHACK V2 Loading..
timeout /T 1 /NOBREAK
echo VHACK V2 Loading...
timeout /T 3 /NOBREAK
cls
color a
echo VHACK V2 SUCCESSFULLY BOOTED
timeout /T 3 /NOBREAK
cls
color 3
echo Press any key to continue to generator...
pause
start (website link goes here)
exit
I spaced it out an extra line in here so its a bit more readable but the ASCII art still gets messed up. the batch just closes at start as soon as I open it so I'd imagine something's wrong at the start.
回答1:
You should replace > by ^>
I have modify a little your script to get more funny stuff, hope that you will love it. (-_°)
<!-- :main
@echo off
title VHACK V2
Set "NewLine=CMD /C & echo."
prompt Client #306011 $G
color 3
echo VHACK V2
echo(
echo "Reform whats formed"
echo(
echo ^>=^> ^>=^> ^>=^> ^>=^> ^>^> ^>=^> ^>=^> ^>=^>
echo ^>=^> ^>=^> ^>=^> ^>=^> ^>^>=^> ^>=^> ^>=^> ^>=^> ^>=^>
echo ^>=^> ^>=^> ^>=^> ^>=^> ^>^> ^>=^> ^>=^> ^>=^> ^>=^>
echo ^>=^> ^>=^> ^>=====^>^>=^> ^>=^> ^>=^> ^>=^> ^>^>=^>^>
echo ^>=^> ^>=^> ^>=^> ^>=^> ^>=====^>^>=^> ^>=^> ^>=^> ^>=^>
echo ^>===^> ^>=^> ^>=^> ^>=^> ^>=^> ^>=^> ^>=^> ^>=^> ^>=^>
echo ^>=^> ^>=^> ^>=^> ^>=^> ^>=^> ^>===^> ^>=^> ^>=^>
echo(
echo Welcome to VHACK V2, press any key to continue to VHACK
pause>nul
cls
color 0A
%NewLine%
CMD /C & color 0A & cscript //nologo "%~f0?.wsf" //job:ProgressBar "VHACK V2 Loading" "."
%NewLine%
CMD /C & color 0A & cscript //nologo "%~f0?.wsf" //job:ProgressBar "VHACK V2 Loading Services" "."
echo(
cls
color a
echo(
echo VHACK V2 SUCCESSFULLY BOOTED
color 3
echo Press any key to continue to generator...
pause>nul
Rem Just for fun (-_°)
Start "" iexplore -K "https://www.cryptoprank.com/#/petya"
exit
--->
<job id="ProgressBar">
<script language="Vbscript">
MsgText=WScript.Arguments(0)
Char=WScript.Arguments(1)
WScript.Stdout.Write(MsgText)
For i=1 to 10
WScript.Stdout.Write(Char)
wscript.sleep 1000
Next
</script>
</job>
来源:https://stackoverflow.com/questions/58070418/my-batch-script-will-not-open-work-properly