WiredWX Hobby Weather ToolsLog in

 


description[In Discussion] Command prompt and BATCH files. Empty[In Discussion] Command prompt and BATCH files.

more_horiz
[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.

BATCH FILES
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.
Type:
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.
Ex:

'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.
pause
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!
pause
echo This is a test!
pause
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.
[u]NOTE
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.

Example:
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.
NOTE!

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)

description[In Discussion] Command prompt and BATCH files. EmptyRe: [In Discussion] Command prompt and BATCH files.

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

description[In Discussion] Command prompt and BATCH files. EmptyRe: [In Discussion] Command prompt and BATCH files.

more_horiz
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:\WINDOWS\notepad.exe"
"C:\Program Files\Opera\opera.exe"
exit


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

description[In Discussion] Command prompt and BATCH files. EmptyRe: [In Discussion] Command prompt and BATCH files.

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