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
vibo
Messages: 21
Registered: August 2012
Junior Member
Hi,
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

:main
cls
echo                                     //MAIN MENU\\
echo.
echo 1. Got to Google
echo 2. Enter path
echo 3. Exit
echo.
echo ------------------------------------------
echo Enter your choice :
echo.
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=
:main
echo.
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: 68722
Registered: March 2007
Location: Saint-Maur, France, https...
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).

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


Current Time: Wed Dec 11 15:08:33 CST 2024