Writing a Shell Script on Windows


To write a Shell Script on Windows

Just Open a notepad and enter your common commands

For E.g

There is a folder “C:\Documents and Settings\a1″ and you have to got into
another folder called on a2 on the Desktop.So you have to enter cd a2 at the
command prompt

Instead of entering it in command prompts just enter it in a notepad and
save it aaa.cmd in the same location.

So when you need to enter into another directory just type “aaa.cmd” at the
Command prompt

This will execute the script and you will now inside the a2 folder in
Command Prompt

This entry was posted on Thursday, May 28th, 2009 at 11:02 pm and is filed under Shell Scripting. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Post a Comment