Computing.Net > Forums > Disk Operating System > Changing Data of %choice% in .BAT File...

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Changing Data of %choice% in .BAT File...

Reply to Message Icon

Name: Hansum Krishna
Date: June 9, 2009 at 23:00:11 Pacific
OS: Windows XP
Subcategory: Configurations
Comment:

Now, I m working on a bat file which makes an autorun.inf regarding to given icon by the user, which will make a autorun icon on the external memory.

I need to know that is there any way to set more than two %choice data in batch process??...



Sponsored Link
Ads by Google

Response Number 1
Name: lycan20
Date: June 10, 2009 at 00:22:29 Pacific
Reply:

Are you asking on how to delete them?

Want A Weekly Update on Latest System Security Problem http://www.systemsecurityinstitute.org


0

Response Number 2
Name: Hansum Krishna
Date: June 10, 2009 at 03:47:49 Pacific
Reply:

yes.....
in my batch file i want to set 2 choices.....
one choice is user input for user's usb drive..
'n' another choice for users icon path.....

i mean that, if it can be like this:

===
set input=
set /p choice=type usb drive:%choice1%
cls
set input=
set /p choice=type icon name without .ico extension:%choice2%
===



0

Response Number 3
Name: Mechanix2Go
Date: June 10, 2009 at 07:14:16 Pacific
Reply:

Is it me or are these msgs getting daffier by the week?

I don't know what the question is but I know there's no set /p in DOS.


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 4
Name: Hansum Krishna
Date: June 10, 2009 at 21:55:45 Pacific
Reply:

Now Read it Carefully (Specially Mechanix2Go)........
I m making a .bat file which has several tools related to USB.....
Such as Formating USB, Making an icon of USB(Using Autorun.inf), ect...ect....

All are working fine accept "Making Icon of USB"

now, everyone knows what is autorun.inf.......


ha??....
if you copy a icon to your usb......suppose it is "abc.ico"
then make a new file named "autorun.inf"
and type the following data in it.......
===
[autorun]
icon=abc.ico
===
Then next time you insert the usb to your pc, the drive icon will be "abc.ico"

I want my batch file to do same thing........in a user friendly way....
i want that batch file to take 2 user inputs of different data.......

(and yes, i dont think msgs r getting daffier, anyones eyes r getting weak......u know the hint......
b'coz i already typed - I M WORKING ON BATCH FILE !!!!!)
does this bold words went to your mind, this time "Mechanix2Go"..........

"=====================================
If at first you don't succeed, you're about average.

M2"
ha....have you ever succeeded......???


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Changing Data of %choice% in .BAT File...

invalid # of paramaters in bat file www.computing.net/answers/dos/invalid-of-paramaters-in-bat-file/14653.html

if/then in bat file www.computing.net/answers/dos/ifthen-in-bat-file/13907.html

How can i write from bat file www.computing.net/answers/dos/how-can-i-write-from-bat-file/6434.html