Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Batch file problems.

Thread Tools
 
Search this Thread
 
Old 02 June 2003, 09:25 AM
  #1  
Stueyb
Scooby Regular
Thread Starter
 
Stueyb's Avatar
 
Join Date: May 2002
Posts: 1,893
Likes: 0
Received 0 Likes on 0 Posts
Post

Hi guys,

Ive been racking my brains over the weekend and frazled the last remaining braincell on it.

What im trying to do is to have a batch file run, the user presses a key (1 2 or 3) and this runs 1.bat 2.bat or 3.bat. You get the idea.

However when you launch a shortcut I cannot see any way to make it wait for the user to press the required number because the batch file shuts up and returns to Windows. I did think perhaps a cmd but its a bit of a kludge.

Any ideas ?
Old 02 June 2003, 10:08 AM
  #2  
rik1471
Scooby Regular
 
rik1471's Avatar
 
Join Date: Nov 2001
Posts: 4,788
Likes: 0
Received 0 Likes on 0 Posts
Post

What operating system will it be running on?
Old 02 June 2003, 10:11 AM
  #3  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

@echo off
set /p input="Enter Number>"
call %input%.bat

??

David
Old 02 June 2003, 10:14 AM
  #4  
Stueyb
Scooby Regular
Thread Starter
 
Stueyb's Avatar
 
Join Date: May 2002
Posts: 1,893
Likes: 0
Received 0 Likes on 0 Posts
Post

The os is both 98 and Win2k
Old 02 June 2003, 10:17 AM
  #5  
Stueyb
Scooby Regular
Thread Starter
 
Stueyb's Avatar
 
Join Date: May 2002
Posts: 1,893
Likes: 0
Received 0 Likes on 0 Posts
Post

David,

That worked a treat. Thanks mucho for that !

Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Krissyb-P1
Subaru Parts
3
11 February 2016 08:17 PM
yabbadoo4
ScoobyNet General
11
30 September 2015 10:33 PM
Nick_Cat
Computer & Technology Related
2
26 September 2015 08:00 AM
Littleted
Computer & Technology Related
0
25 September 2015 08:44 AM
riiidaa
ScoobyNet General
1
12 September 2015 11:52 AM



Quick Reply: Batch file problems.



All times are GMT +1. The time now is 12:24 PM.