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

Sponsored Links



Help me please with this batch problem!

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 08-08-2011
Member
 
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?

Reply With Quote
  #2  
Old 24-08-2011
Member
 
Join Date: Apr 2009
Posts: 967
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.
Reply With Quote
  #3  
Old 26-08-2011
Member
 
Join Date: Jul 2011
Posts: 18
smile Re: Help me please with this batch problem!

I have Windows 3.0.
Reply With Quote
  #4  
Old 26-08-2011
Member
 
Join Date: Jan 2006
Posts: 605
Re: Help me please with this batch problem!

From a website, it was noticed that:

Quote:
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.
Reply With Quote
  #5  
Old 26-08-2011
Member
 
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!
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Help me please with this batch problem!"
Thread Thread Starter Forum Replies Last Post
Batch file execution problem hwp Windows XP Support 3 02-04-2012 05:49 AM
Backup Batch File Problem columbo1977 Software Development 1 08-10-2010 03:47 AM
help with reg add in batch file pete0085 Windows XP Support 7 03-11-2009 07:45 PM
Ftp Batch program Ryder Networking & Security 4 25-03-2009 05:29 PM
What is a batch file? rohit007 Software Development 8 29-09-2008 05:10 PM


All times are GMT +5.5. The time now is 06:53 AM.