[In Discussion] Command prompt and BATCH files.

View previous topic View next topic Go down

[In Discussion] Command prompt and BATCH files.

Post by Aprius on Sat 06 Mar 2010, 8:46 am

[Hello. This guide is unapproved, and further under discussion. Please do not follow instructions. If you do, it is at your own risk. This is currently under discussion until April 1, 2010. If the writer of this guide does not revise it before that date, this guide will be deleted. ~DragonMaster Jay]

Hey, it's Aprius, with some cool little tricks I found with Notepad and Command prompt.

Alright, first, you'll need to open up notepad, which should be located under the start menu.

Start --> All Programs --> Accessories -->Notepad.

Alright, this is where we'll make the .BAT files.

Second, let's make a folder on the desktop named "batch".

This is where we'll save the .bat files.

And before we begin, to use a .bat file, you must double click it.
Let's make a Shutdown Abort script.
1.) Shutdown Abort Script.
This is quite an easy thing to make in Notepad.
shutdown -a

It's that easy. Now, this is probably the trickiest part. When saving, under file name, save this as "Abort.bat". Well, it has to have .bat at the end, but it doesn't have to say Abort.This just helps us keep organized.

2.) A shutdown script.
This will shutdown your computer, with a timer that you can change. There may not be much use for this, but I suppose it could be a prank. Note: Inside of the " " , you can determine what the box says.

Under Notepad, type:
Shutdown -s -t 30 -c Shut Down Imminent.

And save that as something like "Shutdown.bat". NOTE: The 30 in that line represents a thirty second countdown. This number can be edited.

3.)A custom window.
Before I go any further, I should say that after 'echo' determines what that line will say.

'echo Hello, My name is Aprius.'

Determines that the line will say "Hello, My name is Aprius."

And that the line 'pause' creates a line that asks you to press any key to continue.

So, with that being said, if we type"
'echo Hello.My name is Aprius.
echo I am a test message.'

Then the window will say:
"Hello. My name is Aprius."
Press Any Key To Continue...
(Press a Key)
I am a Test message."

So, the choice is yours. But if you want something to start on, let's try typing:

echo Warning!
echo This is a test!
echo And you passed!

Into notepad. Save this as "test.bat".

Now, why don't I show you all some:
Command Prompt Commands?

First, let's open up command prompt.

This is also located under the start menu.

Start->All Programs->Accessories->Command prompt.

Now, before you act like me, and close it because it looks complex, bare with me.

The line looks something like this: C:\Documents and Settings\(YourUser)
Where (YourUser) Is whatever name you're logged onto currently.
I will use the symbol '>' To determine the end of the previous line.
With that said, if I type
>net user
It means you type "net user" I did this so I wouldn't have to repeat the previous line.
(Such as C:\Documents and Settings\(YourUser) )
Also, keep in mind that nothing I type should be in parenthesis. ex: (username)
So, first thing, I'll show you how to add an account onto your computer.

1.) Creating an account.
This is a fairly simple thing to do.The line is as follows:
>net user (Desired Username) (Desired Password) /add.

C:\Documents and Settings\(YourUser) net user Aprius xxxx /add

It should now say "The Command Has Completed Successfully." Meaning, that you've created another user.

2.) Changing a password without knowing the original password.
This is meant to be used if you forgot your password, but can also be used to prank someone.

When typing the password, it does NOT show you what you typed. So make sure you KNOW what you've typed.

The command line is as follows: (Yes, type the asterisk.)
> net user (Your Username) *
It will ask you to specify the password. Do so.
After hitting Enter, it will ask you to confirm the password- simply type the password again and press enter.

That's what I have right now, I've excluded the things you can do in a Domain, for now at least.

I leave you Xp users with a small easter egg. In Command prompt:
telnet (Enter)
o (Enter)
towel.blinkenlights.nl (Enter)
And now a smaller window appears showing a short credits, and then, a Text version of StarWars Episode IV plays. No lie. It's built into Xp.

Last edited by DragonMaster Jay on Thu 11 Mar 2010, 2:13 am; edited 4 times in total (Reason for editing : DragonMasterJay requested it. =D)


Rookie Surfer
Rookie Surfer

Posts : 90
Joined : 2009-11-11
Operating System : Windows 7 64Bit

View user profile

Back to top Go down

Re: [In Discussion] Command prompt and BATCH files.

Post by DragonMaster Jay on Sun 07 Mar 2010, 1:54 am

Please straighten up this guide to look more professional. The instructions appear unsafe at the moment.

Kaspersky E-Store - Get $30 off Kaspersky products.

GeekPolice Academy Manager


DragonMaster Jay

Manager | Tech Officer
Manager | Tech Officer

Posts : 13451
Joined : 2009-09-07
Operating System : Windows 7 Ultimate

View user profile http://www.twitter.com/jaypfoutz

Back to top Go down

Re: [In Discussion] Command prompt and BATCH files.

Post by Rebel on Wed 10 Mar 2010, 4:37 pm

Maybe you should have had these two topics separated, batch files and command line? You could have added to you batch file tutorial something like how to start more than one program at once, for example:

@echo off
"C:\Program Files\Opera\opera.exe"

Maybe this would be something people would like to know, I don't know just a suggestion?


Newbie Surfer
Newbie Surfer

Posts : 12
Joined : 2010-03-08
Operating System : Windows XP, Windows Vista, Fedora

View user profile

Back to top Go down

Re: [In Discussion] Command prompt and BATCH files.

Post by Sponsored content Today at 8:36 pm

Sponsored content

Back to top Go down

View previous topic View next topic Back to top

Permissions in this forum:
You cannot reply to topics in this forum