1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Enter custom parameters like Domain name ,Server name using a bat file

Discussion in 'DOS/Other' started by varunfzr26, Dec 29, 2010.

Thread Status:
Not open for further replies.
  1. varunfzr26

    varunfzr26 Thread Starter

    Joined:
    Dec 27, 2010
    Messages:
    1
    Hi ,

    I am using Qc_ICR tool where i have to enter the Usename , password , server name , domain name again and again .Can the above be done using a bat file .
     
  2. centauricw

    centauricw

    Joined:
    Jun 26, 2010
    Messages:
    444
    Yup. You can use SET /P which will prompt the user to input a string that will be assigned to the variable:

    SET /P variable=[promptString]

    This is for Windows 2000/XP and higher. It will not work with Windows NT/Me/98/95. To get the full help for SET, type SET /? in the Command Prompt window.
     
  3. Ent

    Ent Trusted Advisor

    Joined:
    Apr 11, 2009
    Messages:
    5,467
    First Name:
    Josiah
    The set /P command is used where you want to type information into the batch file for processing, allowing you to manually enter custom parameters into the batch. If you are after a way to launch Qc_ICR with the same user, password, server and domain name every time you wouldn't be using the set /P command, otherwise you might as well type it in normally.

    Unfortunately I'm not familiar with the program in question and have failed to find out anything about it, so I can't answer how you'd do that. If you can give me a link I'll try to do more. You might (especially if it is a command line program) be able to do so simply by launching the program with arguments.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/971372

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice