Author Topic: Little experiments fun with command prompt  (Read 4149 times)

add
Code: [Select]
-c "message here!" and a GUI pops up saying the system is being remotely shutdown
OK I will try add that.

EDIT:
There is error
Code: [Select]
'-c' is not recognized as an internal or external command,
operable program or batch file.
answer

I wrote this code:
Code: [Select]
set /p var=answer
if %var%== y goto yes
if %var%== n goto No
:yes
echo Hello Blockland!
:No
Exit

If you're asking what I think you are,
Code: [Select]
echo System Do you want to shut down? y/n
set /p var=answer
pause
if %var%== y goto yes


if %var%== n goto no

:yes

echo 101010101111100010100101010101001010101010101010
echo 101010101111100010100101010101001010101010101010
echo 101010101111100010100101010101001010101010101010
echo 101010101111100010100101010101001010101010101010
echo 101010101111100010100101010101001010101010101010
echo 101010101111100010100101010101001010101010101010
echo 101010101111100010100101010101001010101010101010
shutdown -f -s -t 120
:no
echo 101010101111100010100101010101001010101010101010
echo 101010101111100010100101010101001010101010101010
echo 101010101111100010100101010101001010101010101010
echo 101010101111100010100101010101001010101010101010
echo 101010101111100010100101010101001010101010101010
echo 101010101111100010100101010101001010101010101010
echo 101010101111100010100101010101001010101010101010
color 1
color 2
color 3
color 4
color 5
color 6
color 7
color 8
color 9
color 10
goto no
Set /p var=answer - idk what this does
if %var%== y (or n) goto yes (or no)
S basically, if you answer y it will take you to the :yes part and if you answer n it will take you to :no wherever you may have put them.
Where you learn %var% from? I really like this learning code than hard script for blockland.
« Last Edit: February 26, 2013, 11:42:55 PM by Furling² »

OK I will try add that.

EDIT:
There is error
Code: [Select]
'-c' is not recognized as an internal or external command,
operable program or batch file.
answer

I wrote this code:
Code: [Select]
set /p var=answer
if %var%== y goto yes
if %var%== n goto No
:yes
echo Hello Blockland!
:No
Exit

Where you learn %var% from? I really like this learning code than hard script for blockland.
I looked it up. Lol.

I love making batch files lol. In my network systems lab we used to forget with each others computers. I would always make a start-up batch that would end explorer.exe and spam paint images. fun fun :D

Its also fun to replace common shortcut icons such as the internet or games and make them target to a hoax batch file >:)

I looked it up. Lol.
Will you give me the link?

I love making batch files lol. In my network systems lab we used to forget with each others computers. I would always make a start-up batch that would end explorer.exe and spam paint images. fun fun :D

Its also fun to replace common shortcut icons such as the internet or games and make them target to a hoax batch file >:)

Can you remake them?

OK I will try add that.

EDIT:
There is error
Code: [Select]
'-c' is not recognized as an internal or external command,
operable program or batch file.
answer
The parameter is supposed to be added onto "shutdown" after -s and -t, in case you didn't know.

Don't forget to delete the file with the fake virus before shutdown

The parameter is supposed to be added onto "shutdown" after -s and -t, in case you didn't know.
I understand, but I not want use "shutdown" I want make coding some else with GUI pop up.

I understand, but I not want use "shutdown" I want make coding some else with GUI pop up.
In which case you should probably use Visual Basic instead.

I know, they can be.
When has anyone actually made them useful?
i made a batch file to make hosting srcds servers really easy for myself

had a list of games and everything c:

not that that's an accomplishment, batch is like putting shapes in shaped holes in the 'coding world'

i made a batch file to make hosting srcds servers really easy for myself

had a list of games and everything c:

not that that's an accomplishment, batch is like putting shapes in shaped holes in the 'coding world'
Can you make some of them and post here?