Computing.Net > Forums > Programming > for Mechanix

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

for Mechanix

Reply to Message Icon

Name: lee123abc
Date: March 23, 2009 at 16:29:59 Pacific
OS: win xp 5.1.2600
CPU/Ram: 3mhz/2 gig
Product: Dell / PRECISION
Subcategory: Batch
Comment:

M2, I was reading a post earlier you answered.
I often use spaces with ==
For example:
if %example1% == %example2%
or
if %counter% == 5 ....

Does this really matter???
I do the same for SET. Example
set /a counter + = 1
This seems to work fine.

Cheers



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: March 23, 2009 at 21:37:58 Pacific
Reply:

Hi lee, notice the trials below. I prefer not to temp fate.

============================
set var =abc& if !var!==abc echo ok
echo !var!>> newfile
==========================
The set /a is adifferent story because it's not literal.

chok dee


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: lee123abc
Date: March 24, 2009 at 01:58:05 Pacific
Reply:

khorb koon!
I will do that from now.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


set up of email profile Trouble deleting with FOR...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: for Mechanix

VB Script To Prompt For Cell Reference www.computing.net/answers/programming/vb-script-to-prompt-for-cell-reference/19836.html

Nested FOR loop prevents parent from complete www.computing.net/answers/programming/nested-for-loop-prevents-parent-from-complete/20042.html

VBA math function for time dilation www.computing.net/answers/programming/vba-math-function-for-time-dilation/6177.html