• CLI, Scripts & Batch
  • Tools & Technical
  • Databases
  • Microsoft
  • Web Development
  • Operating Systems
  • Gaming
  • About
Newtriblog

How to capture input from a command prompt / batch

May 17, 2012 | batch files, OSes, Scripts & Batch, Windows

Write the following in a batch file and say the input was “andreas”:

[bash]@echo off
echo == Capture Input ===
set server=192.168.1.12
SET /P Choice=Type your Username and press Enter:
echo Logging on to %server% with %choice%…
[/bash]

Output:

Logging on to 192.168.1.12 with andreas…

Recent Posts

  • FBackup Silent Install params 29 April, 2020
  • How to Disable UAC in Windows 10? Here Are Four Simple Ways! 15 April, 2020
  • How to install TP-Link Print Server by using Standard TCP/IP port in Windows Vista and Windows 7 14 April, 2020
  • Create a Google Keep desktop shortcut 14 February, 2020
  • Doom II Cheats 16 November, 2019
  • How to add router TL-WR841N via WiFi to existing WiFi Modem/Broadband 6 November, 2019
  • Making an SD Card as Permanent Storage in Windows 10 30 October, 2019
  • How to protect and unprotect Excel sheet with or without password 19 September, 2019

Tags

adf (4) adf10g (4) apache (1) bash (1) batch (3) choice (1) cmd (3) dos (1) evb (1) extract (2) find (1) fm (1) fm10 (2) forms (4) forms 11g (4) forum (2) install (2) java (2) javaIDE (1) java version (1) jdev (4) jdev10 (1) linux (18) oc4j (2) office (1) ora10g (6) ora11g (11) oracle (12) oradb (4) php (3) plsql (12) portal (6) putty (4) reports (1) svn (2) tail (2) tc (3) totalcmd (3) usb (2) vbrun60 (1) vi (1) vm (2) webutil (1) win7 (5) xming (2)

Categories

Link Blog

  • Andreas's Blog
  • bash commands
  • newtrics.com
  • WordPress Planet

Comments

  • Stics on how to copy text from xming to windows
  • Reddy on how to copy text from xming to windows
  • Stics on how to find duplicates/singles in PL/SQL
  • Z on how to find duplicates/singles in PL/SQL
  • Narendra on how to deploy an app to a new oc4j-instance on OAS 10.1.3.1
  • CLI, Scripts & Batch
  • Tools & Technical
  • Databases
  • Microsoft
  • Web Development
  • Operating Systems
  • Gaming
  • About
Copyright © 2016 Andreas Mastichis | Designed by Newtrics