Home » Infrastructure » Windows » Passing values/arguments to a batch file
Passing values/arguments to a batch file [message #564611] Sun, 26 August 2012 10:51 Go to next message
Messages: 21
Registered: August 2012
Junior Member
I have a batch file Menu.bat which should pass accept the input parameters from the end users and pass the entered values to a different batch file. Could you please help me.

After entering option 2 the user should be prompted with an option to enter the path. E.g. /shared/folder.
Now '/shared/folder' should be passed to a different batch file named R.bat
Please help

Below is the Menu.bat file.

@echo off
color 00
title Security Audit Adaptor

echo                                     //MAIN MENU\\
echo 1. Got to Google
echo 2. Enter path
echo 3. Exit
echo ------------------------------------------
echo Enter your choice :
set /p menu=))
if not defined menu goto main

if %menu% ==1 (
set menu=
start http://google.com
goto main

if %menu%==2 (
set menu=
echo Enter the path
goto main 


if %menu%==3 exit

Re: Passing values/arguments to a batch file [message #564612 is a reply to message #564611] Sun, 26 August 2012 11:54 Go to previous message
Michel Cadot
Messages: 68510
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This question bears no real connection with Oracle database.
Please find a more appropriate forum.
The topic is locked.
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).

Previous Topic: PL/SQL with Batch file
Next Topic: Oracle DB out of memory error
Goto Forum:

Current Time: Sat Sep 30 14:00:11 CDT 2023