Results 1 to 5 of 5

Thread: Help me please with this batch problem!

  1. #1
    Join Date
    Jul 2011
    Posts
    18

    Help me please with this batch problem!

    Hi when I create a batch file I enter set -p name= and then i save it as .bat. ps i also put @echo off and Title Hello echo enter your name. Right? So I open it up and i enter my name - Dillon McFarlane and it just quits itself. However, when you put DillonMcFarlane or Dillon it continues to the next command. But I want to write two seperate words. How do I do that?

  2. #2
    Join Date
    Apr 2009
    Posts
    970

    Re: Help me please with this batch problem!

    What is the operating system that you are having in your computer? You have not mentioned that. Anyway, you can try by right clicking on the file and then set it to the compatibility mode. Hope that this will help you.

  3. #3
    Join Date
    Jul 2011
    Posts
    18

    smile Re: Help me please with this batch problem!

    I have Windows 3.0.

  4. #4
    Join Date
    Jan 2006
    Posts
    605

    Re: Help me please with this batch problem!

    From a website, it was noticed that:

    The percent followed by a numeric value, beginning with one, allows users to add variables within a batch file. The below line is an example of what can be used in a batch file.
    ECHO Hello %1

    When the above one-line batch file is created, add your name after the batch file. For example, typing myname (being the name of the bat file) and then your name:

    myname bob

    would output:

    Hello bob

    Note: This can be extended to %2, %3, and so on.

  5. #5
    Join Date
    Jul 2011
    Posts
    18

    Re: Help me please with this batch problem!

    Actually I just fiogured out that I have Windows 1.0 because someone told me!

Similar Threads

  1. Batch file execution problem
    By hwp in forum Windows XP Support
    Replies: 3
    Last Post: 02-04-2012, 05:49 AM
  2. Backup Batch File Problem
    By columbo1977 in forum Software Development
    Replies: 1
    Last Post: 08-10-2010, 03:47 AM
  3. help with reg add in batch file
    By pete0085 in forum Windows XP Support
    Replies: 7
    Last Post: 03-11-2009, 07:45 PM
  4. Ftp Batch program
    By Ryder in forum Networking & Security
    Replies: 4
    Last Post: 25-03-2009, 05:29 PM
  5. What is a batch file?
    By rohit007 in forum Software Development
    Replies: 8
    Last Post: 29-09-2008, 05:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,053,895.11753 seconds with 17 queries