Computing.Net > Forums > Disk Operating System > .bat file instructions

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

.bat file instructions

Reply to Message Icon

Name: Valerie (by Garibaldi)
Date: June 1, 2005 at 15:43:56 Pacific
OS: Dos 7.10
CPU/Ram: P133 48mb
Comment:

Where can I find a listing for the symbols which appear in .bat files e.g. if !%2==!p goto printit. What does the exclaim do please?

V...



Sponsored Link
Ads by Google

Response Number 1
Name: hiho
Date: June 1, 2005 at 21:44:01 Pacific
Reply:

http://www.allenware.com/icsw/icswidx.htm


0

Response Number 2
Name: Mechanix2Go
Date: June 1, 2005 at 22:50:48 Pacific
Reply:

Hi Valerie,

In a BAT the == does a test for equality.

If the variable or parameter is NUL [not set] then a test like this will give an error:

if %1==A do blabla

So, many people will use something like this:

if %1'==A' do blabla

The choice of a character is arbitrary, but avoid special meaning chars like % ? * / \


Most folks use: ~ ! ' "

HTH


0

Response Number 3
Name: Valerie (by Garibaldi)
Date: June 2, 2005 at 18:04:13 Pacific
Reply:

Thanks guys.

V...


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


DOS 7.10 & defrag.exe Multiple fileexist



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: .bat file instructions

Backup bat file www.computing.net/answers/dos/backup-bat-file/3828.html

bat file to del file after date www.computing.net/answers/dos/bat-file-to-del-file-after-date/13958.html

*.bat file associations www.computing.net/answers/dos/bat-file-associations/13381.html