Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Sorry :( i know this is the site of professionals. but i am really interested in learning programing.... i don't know even the basics... Is any1 kind enough to teach me that.... Or links to guiding sites would also be helpful..
thanks for your help...:)

Nothing beats a web search, "batch commands" "cmd" "command" "nt command script" are all good key words, there is a vast amount of documentation on the subject.
I can't think of any one comprehensive resource, just lots of smaller incomplete resources. So I can't really point you to a web page that has it all.

Thank you judago... i will try it.... had tried that if anyone responses immediately.But still thank you very much.. really appreciate your kindness.. by the way where are you from??
what do you do??

Hi big-e-ner and welcome to computing.net! I guess I sound like I've been around here for a long time huh... lol Anyway to answer your question, If you search this forum you will find many great recipes for beginners like you and I. I have begun to compile a little library of my scripts with names of their functions by digging through the forums. I always read the entire forum posts to make sure that the script actually worked for the person at the end of the forum entry. ;) Anyways if you are ready to get your hands dirty with your first batch file, I would be more than happy to share a little example with you since others have helped me in the past. :) Caution: For the purpose of clarity, I will oversimplify every step so please don't take it as an insult to your intelligence but as a desire on my part to help out. :)
Follow these steps.
1. Open a new notepad document.
2. Copy and paste the following text into the notepad document.@echo off
@start wordpad
@start calc
cls
exit3. Go to the file menu and select "Save As"
4. In the window that will popup enter a name for your new batch file. You can change the name to MyFirstBatch.bat or anything you want but make sure to add the ".bat" at the end of the filename and don't save it yet!5. Right below the "file name" field there is another field named "save as type," you need to click on that and change it to "All Files (*.*)"
6. When you have done this choose a location to save your file, you can use your desktop so that it will be easy to find this new batch file later...
7. When you have picked a place to save it that you can remember, click on "Save"
8. Now go to find MyFirstBatch.bat or whatever you called it and double click on it.
9. A command prompt window should flash on your screen and then disappear and then Wordpad and your calculator should open if you have those two programs on your computer.
10. If you enjoy this simple batch tool, you might want to put it in a folder and start collecting all the great batch tools that are shared on this awesome forum for use in your future experiments. Here are some of the ones I have found to be priceless so far...
A batch file that will create folders based on the names of all files found in a certain folder and then move the files into the folders with the same name. Thanks to IVO for this one. :)
:: MDSF.BAT Usage: mdsf
@echo off
pushd \Name_of_the_folder_where_your_files_are
for %%j in (*) do (
md "%%~nj"
move "%%j" "%%~nj"
)
popd
:: [End_Of_Batch]...and here is one that works with text files from Reno (if you want to use it for other types of files you need to change the extension to something else.)
@echo off
for /f "tokens=*" %%a in ('dir /b /a-d *.txt') do mkdir "%%~na" & copy "%%a" "%%~na"
clsNow you may be wondering what all these things in the batch file means, well I can only help a very tiny bit there. For the full explanation, you will have to do some super web hunting. I know what the following pieces of code mean so far.
@echo off = Don't type anything on the command prompt screen
@start ___ = Start or execute whatever comes after the word start on this line.
for...blah blah blah... do...blah blah blah= do something for everything that I say to do it for. ;) Sorry you can probably see my ignorance more clearly now. lol.
mkdir = Make a directory (also known as a folder)
For the rest of the code explanations, I hope that your web hunting will help or maybe one of the batch kings might find a minute to drop an ounce of wisdom on your head. Anyways, I wish all the best for you in your batch journey and sorry for blabbing so much in your post. Have fun and good luck.

You said you wanted to "learn programming." You've got answers based on batch programming, but that's not an ideal first programming language. Do you have any particular programming language in mind?

![]() |
batch comman
|
START command won't work ...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |