[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 5th March 2010, 9:46 pm

[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 10th March 2010, 3:13 pm; edited 4 times in total (Reason for editing : DragonMasterJay requested it. =D)


Posts Posts : 90
Joined Joined : 2009-11-10
Gender Gender : Male
OS OS : Windows 7 64Bit
Protection Protection : Hijack This!, Ccleaner, MalwareBytes,Avast!
Points Points : 26362
# Likes # Likes : 0

View user profile

Back to top Go down

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

Post by Dr Jay on 6th March 2010, 2:54 pm

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

Dr Jay
Head Administrator
Head Administrator

Posts Posts : 13810
Joined Joined : 2009-09-06
Gender Gender : Male
OS OS : Windows 10 Home & Pro
Arch. Arch. : x64 (64-bit)
Protection Protection : Bitdefender Total Security
Points Points : 302437
# Likes # Likes : 10

View user profile

Back to top Go down

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

Post by Rebel on 10th March 2010, 5:37 am

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?


Posts Posts : 12
Joined Joined : 2010-03-07
OS OS : Windows XP, Windows Vista, Fedora
Points Points : 24731
# Likes # Likes : 0

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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