Advertise Here

Author Topic: Batch/basic Querie  (Read 2727 times)

0 Members and 1 Guest are viewing this topic.

Offline sanga282

  • SMF For Free Member
  • *
  • Posts: 57
    • View Profile
    • GameGuru

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Batch/basic Querie
« on: August 04, 2008, 06:38:55 am »
Does anyone know how i would implement a directive into a .bat file that allows the user to go to what they typed ie
In a normal batch file you have this
Code: [Select]
if %input%==item1 goto item1but you need that for every directive there is so if you had item1, item2, item3, item4 and item5 you would have this
Code: [Select]
if %input%==item1 goto item1
if %input%==item2 goto item2
if %input%==item3 goto item3
if %input%==item4 goto item4
if %input%==item5 goto item5
How would i get it so that if i had 56 items i wouldn't need 56 lines of code only one that is dynamic like
Code: [Select]
if %input%=={help} goto {input}So that way it goes to the input the help and input are the bits i need help with, its kinda hard if anyone has a solution please let me know, it is not an alternative for me to have lines and lines of code because in this instance i am dealing with about 14000 directives


Related Topics

  Subject / Started by Replies Last post
17 Replies
Last post January 13, 2011, 03:52:58 pm
by Hakam J.
2 Replies
Last post June 08, 2007, 03:09:46 am
by Kimmie
1 Replies
Last post November 28, 2008, 07:06:38 pm
by [JeReMy]
0 Replies
Last post September 14, 2008, 05:29:39 pm
by Kalphiter