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 Jun 2, 2003 | 09:25 AM
  #1  
Stueyb's Avatar
Stueyb
Thread Starter
Scooby Regular
 
Joined: May 2002
Posts: 1,893
Likes: 0
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 ?
Reply
Old Jun 2, 2003 | 10:08 AM
  #2  
rik1471's Avatar
rik1471
Scooby Regular
 
Joined: Nov 2001
Posts: 4,788
Likes: 0
Post

What operating system will it be running on?
Reply
Old Jun 2, 2003 | 10:11 AM
  #3  
David_Wallis's Avatar
David_Wallis
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Post

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

??

David
Reply
Old Jun 2, 2003 | 10:14 AM
  #4  
Stueyb's Avatar
Stueyb
Thread Starter
Scooby Regular
 
Joined: May 2002
Posts: 1,893
Likes: 0
Post

The os is both 98 and Win2k
Reply
Old Jun 2, 2003 | 10:17 AM
  #5  
Stueyb's Avatar
Stueyb
Thread Starter
Scooby Regular
 
Joined: May 2002
Posts: 1,893
Likes: 0
Post

David,

That worked a treat. Thanks mucho for that !

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




All times are GMT +1. The time now is 11:59 AM.