windows shell scripting

Ads

 
 

Share on Google+Share on Google+

santhoshdk
windows shell scripting
0 Answer(s)      6 years and 5 months ago
Posted in : Development process

Hi All,

Using this knowledge make a batch file to achieve the following when the batch file is executed.

  1. Accept three parameters, a. Param1 b. Param2 c. Param3
  2. Display the accepted parameters with a message like ‚??Entered Param1 = , Param2 = , Param3=‚??.
  3. Let the second parameter be a directory path. Use Param2 and ‚??change directory‚?? to that path.
  4. Let the third parameter be a file name with extension. It should split the file name and extension and display separately.

Example: If Param1 = ‚??Hello‚?? and Param2 = ‚??C:\Program Files\Java‚??, then when the batch file is executed from C:\, I should see the following

C:>batchFile.bat C:>Entered Param1 = Hello, Param2 = C:\Program Files\Java, Param3 = abcd.txt C:\Program Files\Java> FileName = abcd, Extension = txt

Send me the batch file content when you are done.

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
windows shell scripting
windows shell scripting   Hi All, Using this knowledge make a batch file to achieve the following when the batch file is executed. Accept three parameters, a. Param1 b. Param2 c. Param3 Display the accepted parameters
windows shell scripting
windows shell scripting   Hi All, Using this knowledge make a batch file to achieve the following when the batch file is executed. Accept three parameters, a. Param1 b. Param2 c. Param3 Display the accepted parameters
Advertisements
scripting disabled
scripting disabled  How is scripting disabled?   Scripting is disabled by setting the scripting-invalid element of the deployment descriptor to true. The syntax for disabling scripting is as follows: <jsp-property
Version of struts-scripting>struts-scripting dependency
List of Version of struts-scripting>struts-scripting dependency
Wicked Shell
Wicked Shell Wicked Shellis an Eclipse plugin providing direct access to your system's shell. To be honest, Wicked Shell is not evil at all, although it calls itself wicked... Wicked Shell is a small plugin trying to support your
Version of jpox>jpox-shell dependency
List of Version of jpox>jpox-shell dependency
Version of com.jaredrummler>android-shell dependency
List of Version of com.jaredrummler>android-shell dependency
Version of com.jrummyapps>android-shell dependency
List of Version of com.jrummyapps>android-shell dependency
Version of com.optersoft>com.optersoft.build-shell dependency
List of Version of com.optersoft>com.optersoft.build-shell dependency
JSP scripting elements
JSP scripting elements  How many JSP scripting elements ?   There are three scripting language elements: declarations, scriptlets, expressions
JSP Scripting Elements
JSP Scripting Elements  Explain the jsp scripting elements.   Hi, A scriplet tag is used to place a valid java code. This code is placed in the jspService() method by the JSP engine. Thanks
server side scripting in php
server side scripting in php  is it possible to access values on server side in post request PHP
Father of PHP Scripting Language.
Father of PHP Scripting Language.  Please tell me the latest version... is the father of PHP?   PHP is a general purpose scripting language... Language - Marco Tabini is the father of the PHP Scripting Language. Latest
Artifacts of struts-scripting
List of Artifacts of struts-scripting maven depenency
Explain about Cross site scripting?
Explain about Cross site scripting?  Explain about Cross site scripting
LINUX SHELL SCRIPT - Date Calendar
LINUX SHELL SCRIPT   I wish to create a bash shell script that meets the requirements below. ?Write a bash shell script called how_many_to_go that calculates and prints the number of days, hours, minutes and/or seconds until
Version of maven>maven-shell-plugin dependency
List of Version of maven>maven-shell-plugin dependency
Maven Dependency struts-scripting >> 1.0.1
You should include the dependency code given in this page to add Maven Dependency of struts-scripting >> struts-scripting version1.0.1 in your project
Maven Dependency jpox-shell >> 1.1.3
You should include the dependency code given in this page to add Maven Dependency of jpox >> jpox-shell version1.1.3 in your project
Maven Dependency jpox-shell >> 1.1.9
You should include the dependency code given in this page to add Maven Dependency of jpox >> jpox-shell version1.1.9 in your project
Maven Dependency jpox-shell >> 1.2.0-beta-2
You should include the dependency code given in this page to add Maven Dependency of jpox >> jpox-shell version1.2.0-beta-2 in your project
Maven Dependency android-shell >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.jrummyapps >> android-shell version1.0.0 in your project
Maven Dependency com.optersoft.build-shell >> 0.1.2
You should include the dependency code given in this page to add Maven Dependency of com.optersoft >> com.optersoft.build-shell version0.1.2 in your project
Maven Dependency com.optersoft.build-shell >> 0.1.4
You should include the dependency code given in this page to add Maven Dependency of com.optersoft >> com.optersoft.build-shell version0.1.4 in your project
Maven Dependency com.optersoft.build-shell >> 0.1.5
You should include the dependency code given in this page to add Maven Dependency of com.optersoft >> com.optersoft.build-shell version0.1.5 in your project
Maven Dependency jpox-shell >> 1.1.2
You should include the dependency code given in this page to add Maven Dependency of jpox >> jpox-shell version1.1.2 in your project
Maven Dependency jpox-shell >> 1.2.0-beta-1
You should include the dependency code given in this page to add Maven Dependency of jpox >> jpox-shell version1.2.0-beta-1 in your project
Maven Dependency android-shell >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.jaredrummler >> android-shell version1.0.0 in your project
Maven Dependency android-shell >> 1.0.1
You should include the dependency code given in this page to add Maven Dependency of com.jrummyapps >> android-shell version1.0.1 in your project
Maven Dependency com.optersoft.build-shell >> 0.1.3
You should include the dependency code given in this page to add Maven Dependency of com.optersoft >> com.optersoft.build-shell version0.1.3 in your project
Export to Shell Script Plugin
Export to Shell Script Plugin   ... of an eclipse project's runtime configurations to shell scripts in various formats... having to custom write the shell script code For more information click

Ads

 
Advertisement null

Ads