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.

  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.

View Answers









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
ModuleNotFoundError: No module named 'shell-scripting'
ModuleNotFoundError: No module named 'shell-scripting'  Hi, My... named 'shell-scripting' How to remove the ModuleNotFoundError: No module named 'shell-scripting' error? Thanks   Hi, In your python
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
ModuleNotFoundError: No module named 'shell'
ModuleNotFoundError: No module named 'shell'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'shell' How to remove the ModuleNotFoundError: No module named 'shell'
ModuleNotFoundError: No module named 'to-shell'
ModuleNotFoundError: No module named 'to-shell'  Hi, My Python... 'to-shell' How to remove the ModuleNotFoundError: No module named 'to-shell... to install padas library. You can install to-shell python with following
Version of struts-scripting>struts-scripting dependency
List of Version of struts-scripting>struts-scripting dependency
JSP scripting elements
JSP scripting elements  How many JSP scripting elements ?   There are three scripting language elements: declarations, scriptlets, expressions
Apache Spark Scala Shell
or power shell is used to interact with the windows operating system. Similarly... the Spark Scala Shell type: scala> :q Above command will close the object...Introduction to Apache Spark Scala Shell Getting started with the development
Apache Spark Scala Shell
or power shell is used to interact with the windows operating system. Similarly... Shell type:ADS_TO_REPLACE_10 scala> :q Above command will close the object...Introduction to Apache Spark Scala Shell Getting started with the development
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
ModuleNotFoundError: No module named 'scripting'
ModuleNotFoundError: No module named 'scripting'  Hi, My Python... 'scripting' How to remove the ModuleNotFoundError: No module named 'scripting' error? Thanks   Hi, In your python environment you
importing pyspark in python shell
is that its not coming in the python shell. How should I do for importing pyspark in python shell? I am experience Python developer and now looking to use my
importing pyspark in python shell
is that its not coming in the python shell. How should I do for importing pyspark in python shell? I am experience Python developer and now looking to use my
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
ModuleNotFoundError: No module named 'ansible-shell'
ModuleNotFoundError: No module named 'ansible-shell'  Hi, My... 'ansible-shell' How to remove the ModuleNotFoundError: No module named 'ansible-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'ansible-shell'
ModuleNotFoundError: No module named 'ansible-shell'  Hi, My... 'ansible-shell' How to remove the ModuleNotFoundError: No module named 'ansible-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'ansible-shell'
ModuleNotFoundError: No module named 'ansible-shell'  Hi, My... 'ansible-shell' How to remove the ModuleNotFoundError: No module named 'ansible-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'ansible-shell'
ModuleNotFoundError: No module named 'ansible-shell'  Hi, My... 'ansible-shell' How to remove the ModuleNotFoundError: No module named 'ansible-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'aws-shell'
ModuleNotFoundError: No module named 'aws-shell'  Hi, My Python... 'aws-shell' How to remove the ModuleNotFoundError: No module named 'aws-shell' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'click-shell'
ModuleNotFoundError: No module named 'click-shell'  Hi, My Python... 'click-shell' How to remove the ModuleNotFoundError: No module named 'click-shell' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'clik-shell'
ModuleNotFoundError: No module named 'clik-shell'  Hi, My Python... 'clik-shell' How to remove the ModuleNotFoundError: No module named 'clik-shell' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'curricula-shell'
ModuleNotFoundError: No module named 'curricula-shell'  Hi, My... named 'curricula-shell' How to remove the ModuleNotFoundError: No module named 'curricula-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'hyper-shell'
ModuleNotFoundError: No module named 'hyper-shell'  Hi, My Python... 'hyper-shell' How to remove the ModuleNotFoundError: No module named 'hyper-shell' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'irods-shell'
ModuleNotFoundError: No module named 'irods-shell'  Hi, My Python... 'irods-shell' How to remove the ModuleNotFoundError: No module named 'irods-shell' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'irods-shell'
ModuleNotFoundError: No module named 'irods-shell'  Hi, My Python... 'irods-shell' How to remove the ModuleNotFoundError: No module named 'irods-shell' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'kore-shell'
ModuleNotFoundError: No module named 'kore-shell'  Hi, My Python... 'kore-shell' How to remove the ModuleNotFoundError: No module named 'kore-shell' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'kube-shell'
ModuleNotFoundError: No module named 'kube-shell'  Hi, My Python... 'kube-shell' How to remove the ModuleNotFoundError: No module named 'kube-shell' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'lg-shell'
ModuleNotFoundError: No module named 'lg-shell'  Hi, My Python...-shell' How to remove the ModuleNotFoundError: No module named 'lg-shell... to install padas library. You can install lg-shell python with following
ModuleNotFoundError: No module named 'lg-shell'
ModuleNotFoundError: No module named 'lg-shell'  Hi, My Python...-shell' How to remove the ModuleNotFoundError: No module named 'lg-shell... to install padas library. You can install lg-shell python with following
ModuleNotFoundError: No module named 'marcopolo-shell'
ModuleNotFoundError: No module named 'marcopolo-shell'  Hi, My... named 'marcopolo-shell' How to remove the ModuleNotFoundError: No module named 'marcopolo-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'marcopolo-shell'
ModuleNotFoundError: No module named 'marcopolo-shell'  Hi, My... named 'marcopolo-shell' How to remove the ModuleNotFoundError: No module named 'marcopolo-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'ma-shell'
ModuleNotFoundError: No module named 'ma-shell'  Hi, My Python...-shell' How to remove the ModuleNotFoundError: No module named 'ma-shell... to install padas library. You can install ma-shell python with following
ModuleNotFoundError: No module named 'odoo8-addon-shell'
ModuleNotFoundError: No module named 'odoo8-addon-shell'  Hi, My... named 'odoo8-addon-shell' How to remove the ModuleNotFoundError: No module named 'odoo8-addon-shell' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'os-shell'
ModuleNotFoundError: No module named 'os-shell'  Hi, My Python...-shell' How to remove the ModuleNotFoundError: No module named 'os-shell... to install padas library. You can install os-shell python with following
ModuleNotFoundError: No module named 'ovirt-shell'
ModuleNotFoundError: No module named 'ovirt-shell'  Hi, My Python... 'ovirt-shell' How to remove the ModuleNotFoundError: No module named 'ovirt-shell' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'ovirt-shell'
ModuleNotFoundError: No module named 'ovirt-shell'  Hi, My Python... 'ovirt-shell' How to remove the ModuleNotFoundError: No module named 'ovirt-shell' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'pilot-shell'
ModuleNotFoundError: No module named 'pilot-shell'  Hi, My Python... 'pilot-shell' How to remove the ModuleNotFoundError: No module named 'pilot-shell' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'powerline-shell'
ModuleNotFoundError: No module named 'powerline-shell'  Hi, My... named 'powerline-shell' How to remove the ModuleNotFoundError: No module named 'powerline-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'py3-rest-shell'
ModuleNotFoundError: No module named 'py3-rest-shell'  Hi, My... named 'py3-rest-shell' How to remove the ModuleNotFoundError: No module named 'py3-rest-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'py3-rest-shell'
ModuleNotFoundError: No module named 'py3-rest-shell'  Hi, My... named 'py3-rest-shell' How to remove the ModuleNotFoundError: No module named 'py3-rest-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'py3-rest-shell'
ModuleNotFoundError: No module named 'py3-rest-shell'  Hi, My... named 'py3-rest-shell' How to remove the ModuleNotFoundError: No module named 'py3-rest-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pygtk-shell'
ModuleNotFoundError: No module named 'pygtk-shell'  Hi, My Python... 'pygtk-shell' How to remove the ModuleNotFoundError: No module named 'pygtk-shell' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'pynndb-shell'
ModuleNotFoundError: No module named 'pynndb-shell'  Hi, My Python... 'pynndb-shell' How to remove the ModuleNotFoundError: No module named 'pynndb-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'pytest-shell'
ModuleNotFoundError: No module named 'pytest-shell'  Hi, My Python... 'pytest-shell' How to remove the ModuleNotFoundError: No module named 'pytest-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'python-shell'
ModuleNotFoundError: No module named 'python-shell'  Hi, My Python... 'python-shell' How to remove the ModuleNotFoundError: No module named 'python-shell' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'python-shell'
ModuleNotFoundError: No module named 'python-shell'  Hi, My Python... 'python-shell' How to remove the ModuleNotFoundError: No module named 'python-shell' error? Thanks   Hi, In your python

Ads