/net user <Username> <New password>
Offline
Use up arrow to repeat commands. If you run a console program and it ends you can run it again and type in what you typed in before by pressing up. On Ubuntu you can't do this.
My site Offline
what-the wrote:
Use up arrow to repeat commands. If you run a console program and it ends you can run it again and type in what you typed in before by pressing up. On Ubuntu you can't do this.
No, but on the text-based linux i use you can!
Offline
roijac_test wrote:
tip: don't tip this in:
Code:
del *
![]()
it's actually del *.*
Offline
LS97 wrote:
roijac_test wrote:
tip: don't tip this in:
Code:
del *
![]()
it's actually del *.*
![]()
stupid windows syntax
linux terminal rules!
Offline
roijac_test wrote:
LS97 wrote:
roijac_test wrote:
tip: don't tip this in:
Code:
del *
![]()
it's actually del *.*
![]()
stupid windows syntax
![]()
linux terminal rules!![]()
lol I actually quite like that *.* smiley
Offline
*.* It destroys del!
Offline
LS97 wrote:
lol I actually quite like that *.* smiley
![]()
i think -.- looks better
[/offtopic]
is it possible at all to make you admin if you're not one?
Last edited by roijac_test (2011-10-04 11:41:50)
Offline
I tried making a game in Batch, though I didn't get very far. Only a small battle system and a shop. But it's a start right?
You might find some coding tricks in the game code.
@echo off SET level=1 SET /A maxEXP=%level%*5 SET exp=0 SET /A maxHP=%level%*10 SET health=%maxHP% SET lives=2 SET gold=0 SET /A mhp=%level%*5 SET /P name=Hello! What is your name? GOTO START :START ECHO Hello %name%! Welcome to this game! ECHO Type HELP to learn more about the commands. GOTO GETCMD :BACKFROMTHEDEAD IF %lives% LEQ 0 GOTO END SET /A lives=%lives% - 1 ECHO You have been brought back from the dead. Someone walks up to you and says "You have %lives% more time(s) to die." GOTO GETCMD :GETCMD IF %exp% GEQ %maxEXP% ( SET /A level=%level%+1 ECHO You leveled up! You are now level %level%! SET /A exp=%exp%-%maxEXP% SET /A maxHP=%level%*10 SET /A mhp=%level%*5 SET /A maxEXP=%level%*5 ) SET /P cmd=Command: GOTO RUNCMD :RUNCMD IF /I %cmd%==HELP GOTO HELP IF /I %cmd%==QUIT GOTO END IF /I %cmd%==EXPLORE GOTO EXPLORE IF /I %cmd%==SHOP GOTO SHOP IF /I %cmd%==INFO GOTO DETAILS ECHO No command %cmd% & GOTO GETCMD :HELP ECHO Command : Description ECHO HELP : Shows help page. ECHO EXPLORE : You can explore the world. ECHO SHOP : Shop for items to increase the chance of your survival ECHO INFO : Displays info about your character. ECHO QUIT : Exit the game. GOTO GETCMD :RANDOM set ran=%random:~-1% GOTO %return% :EXPLORE SET return=EXPLORE2 GOTO RANDOM :EXPLORE2 IF %ran% == 0 SET /A gold=%gold% + 1 & ECHO You found a gold piece! & GOTO GETCMD IF %ran% == 1 SET /A gold=%gold% + 1 & ECHO You found a gold piece! & GOTO GETCMD IF %ran% == 2 SET /A gold=%gold% + 1 & ECHO You found a gold piece! & GOTO GETCMD ::IF %ran% == 3 GOTO ATTACKED & GOTO GETCMD ::IF %ran% == 4 GOTO ATTACKED & GOTO GETCMD ::IF %ran% == 5 GOTO ATTACKED & GOTO GETCMD ::IF %ran% == 6 GOTO ATTACKED & GOTO GETCMD IF %ran% == 7 GOTO ATTACKED & GOTO GETCMD IF %ran% == 8 GOTO ATTACKED & GOTO GETCMD IF %ran% == 9 GOTO ATTACKED & GOTO GETCMD ECHO You found nothing while exploring. GOTO GETCMD :DETAILS ECHO Name : %name% ECHO Health: %health%/%maxHP% ECHO Level : %level% ECHO Exp : %exp%/%maxEXP% ECHO Gold : %gold% GOTO GETCMD :SHOP ECHO Item ID : Price : Item Details ECHO 0 : 0 : Leave Shop ECHO 1 : 1 : Health Potion - Restores HP ECHO 2 : 2 : Monster Attraction - Attracts a monster SET /P cmd=What would you like to buy? IF %cmd%==0 ECHO Come again! & GOTO GETCMD IF %cmd%==1 ( IF %gold% LEQ 0 ECHO Not enough money! & GOTO GETCMD SET /A gold=%gold% - 1 ECHO Health restored! SET health=%maxHP% GOTO GETCMD ) IF %cmd%==2 ( IF %gold% LEQ 1 ECHO Not enough money! & GOTO GETCMD SET /A gold=%gold%-2 ECHO A monster appears! GOTO ATTACKED3 & GOTO GETCMD ) IF %cmd%==3 ( IF %gold% LEQ 2 ECHO Not enough money! & GOTO GETCMD SET /A gold=%gold%-3 SET /A lives=%lives%+1 ECHO You have gained a life! GOTO GETCMD ) ECHO No such item! GOTO GETCMD :ATTACKED SET return=ATTACKED2 GOTO RANDOM :ATTACKED2 ECHO You were attacked by a monster and lost %ran% health! SET /A health= %health% - %ran% IF %health% LEQ 0 ECHO You died! & GOTO BACKFROMTHEDEAD ECHO You have %health% left! SET return=ATTACKED3 GOTO RANDOM :ATTACKED3 ECHO You hit the monster and made him loose %ran% health! SET /A mhp=%mhp% - %ran% IF %mhp% LEQ 0 ECHO You killed the monster and found one gold piece and gained some expierence from the fight! & SET mhp=5 & SET /A gold=%gold% + 1 & SET /A exp=%exp% + 1 & GOTO GETCMD SET return=ATTACKED2 GOTO RANDOM :END ECHO The End!
Off topic: Do tell me what you think of the game.
( I know the leveling system is one level behind when leveling up, still not sure what's wrong with that )
Offline
WindowsExplorer wrote:
How do you make a Batch file?
Make a file in Notepad, enter code, and save it as a .bat
Offline
veggieman001 wrote:
WindowsExplorer wrote:
How do you make a Batch file?
Make a file in Notepad, enter code, and save it as a .bat
Even better notepad ++
Offline
roijac_test wrote:
LS97 wrote:
lol I actually quite like that *.* smiley
![]()
i think -.- looks better
![]()
[/offtopic]
is it possible at all to make you admin if you're not one?
It is on XP systems and earlier (ones that have multiple users anyway). The best and funniest user control is Windows 98 SE: you leave the password field blank, and it logs you in!
Offline
LS97 wrote:
roijac_test wrote:
LS97 wrote:
lol I actually quite like that *.* smiley
![]()
i think -.- looks better
![]()
[/offtopic]
is it possible at all to make you admin if you're not one?It is on XP systems and earlier (ones that have multiple users anyway). The best and funniest user control is Windows 98 SE: you leave the password field blank, and it logs you in!
![]()
lol! Not very helpful password protection!
Offline
IF you are experienced in using command prompted you no all about how to remote shutdown others upon ur net work (shutdown -i)
instead us a LOIC its a low orbiting ion cannon you can not only shutdown computers near you but websites and computers that have low security and not windows 7 (if you complain about LOIC its because you haven't used it properly)
Offline
WindowsExplorer wrote:
LS97 wrote:
roijac_test wrote:
i think -.- looks better
![]()
[/offtopic]
is it possible at all to make you admin if you're not one?It is on XP systems and earlier (ones that have multiple users anyway). The best and funniest user control is Windows 98 SE: you leave the password field blank, and it logs you in!
![]()
lol! Not very helpful password protection!
lol bit of a fail for microsoft
Last edited by muppetds (2012-02-28 10:41:51)
Offline
what-the wrote:
Use up arrow to repeat commands. If you run a console program and it ends you can run it again and type in what you typed in before by pressing up. On Ubuntu you can't do this.
Yes you can!
If you are on linux/os x do not run this:
$ sudo rm -rf /
Offline
what-the wrote:
Use up arrow to repeat commands. If you run a console program and it ends you can run it again and type in what you typed in before by pressing up. On Ubuntu you can't do this.
Actually, you can do it on Ubuntu.
Offline
jjgeorge wrote:
IF you are experienced in using command prompted you no all about how to remote shutdown others upon ur net work (shutdown -i)
instead us a LOIC its a low orbiting ion cannon you can not only shutdown computers near you but websites and computers that have low security and not windows 7 (if you complain about LOIC its because you haven't used it properly)
I know how to shutdown a computer via email.
... You have to have access to the computer first lol.
Offline
you cant if your a standard user. the best way to stay admin without using sketchy third party software is to make a password reset disk while the admin forgets to logout, then you can make yourself admin whenever you please as long as you have that removable storage with you. i hid my password reset file on the SD card of my camera and whenever my parents try to put on parental controls, i simply reset the admin password, make my self admin and disable them.
Offline
t-boy wrote:
you cant if your a standard user. the best way to stay admin without using sketchy third party software is to make a password reset disk while the admin forgets to logout, then you can make yourself admin whenever you please as long as you have that removable storage with you. i hid my password reset file on the SD card of my camera and whenever my parents try to put on parental controls, i simply reset the admin password, make my self admin and disable them.
lol i did that as well
Offline