Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: ,

Sponsored Links



Create a .bat file to get input

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 29-06-2009
Member
 
Join Date: Jan 2009
Posts: 97
Create a .bat file to get input

Hello every one
Wish to know how it possible to generate a bat file that would get input an IP address and also make a new file on java policy file. can some one help me out for this?

any help should be greatly received..
Reply With Quote
  #2  
Old 29-06-2009
Member
 
Join Date: Jan 2009
Posts: 1,741
Re: Create a .bat file to get input

dude
may be you can Turn off your CAPS
a batch file, input has to be provide at command line, and saved as an environment variable,Unless there are new batch file rules
Reply With Quote
  #3  
Old 29-06-2009
jesse's Avatar
Member
 
Join Date: Nov 2005
Posts: 2,965
Re: Create a .bat file to get input

On occasions we need some user interaction in batch files.
be aware of which directory a file is to be copied, for instance

the PAUSE command, which stops the batch file until the user hits other than Ctrl, Alt, Shift, CapsLock, NumLock or ScrollLock works with
DOS, Windows and OS/2 versions is the basic user interaction,this will definitely helps you to make the batch files according to your wish
Reply With Quote
  #4  
Old 29-06-2009
Solomon's Avatar
Member
 
Join Date: May 2008
Posts: 4,056
Re: Create a .bat file to get input

hey i got the it from using the method below
set INPUT=
set /P INPUT=Type input: %=%
echo Your input was: %INPUT%
the first commands in order to reset its value, so that if nothing is entered the variable will have no value at all, instead of some senseless value.
set INPUT=
set /P INPUT=Type input: %=%
if "%INPUT%"=="" goto input
echo Your input was: %INPUT%
So, after getting user's input and saving it in a variable,initially i had some situation but eventually i sort it out.think this may help you.
Reply With Quote
  #5  
Old 17-08-2009
Member
 
Join Date: Aug 2009
Posts: 1
Re: Create a .bat file to get input

hi i am trying to run duke nukem in a lan enviroment.

i am using eduke32.exe. eduke requires a ip to connect to. the command so far is: eduke32.exe -net -n0 xxx.xxx.xxx.xxx
i need this to be automated to some degree. the only inupt from the client should be the computer # doing the hosting and the ip.

so, if a batch file comes up askiing for compter # to connect to the client would select #12. a request from the batch file asks or displays the ip for #12. the batch file or the client types in the ip and then the batch file runs eduke32.exe -net -n0 xxx.xxx.xxx.xxx

this maybe to much to ask for but any inout would help. thanks in advance.

rob
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Create a .bat file to get input"
Thread Thread Starter Forum Replies Last Post
getting Error splicing file: Input/output error while copying file in ubuntu Rajni Operating Systems 10 09-01-2012 07:48 AM
Need to read input text and write it to output file Tramba-keshwar Software Development 6 26-06-2011 11:38 PM
Windows 7: Unable to create file with File system error (65535) TheHibiscus Operating Systems 4 23-01-2011 07:07 PM
.icm file in 15.1-inch Viewable Area LCD Dual Input Monitor Zebaril Monitor & Video Cards 4 05-02-2010 04:06 AM
.PRN File Access Input Volodymyra Windows Software 2 27-10-2008 08:21 PM


All times are GMT +5.5. The time now is 03:28 AM.