Computing.Net > Forums > Programming > IF Statement

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.

IF Statement

Reply to Message Icon

Name: AJ (by William Jimenez)
Date: October 31, 2008 at 06:57:58 Pacific
OS: XP SP2
CPU/Ram: Dell
Comment:

Is is possible to write an IF statement that will perform multiple tasks?

For expample IF somefile EXIST (COPY the file to an alternate location and rename the file and xxx and xxx)

basically if something is true do multiple things.

Thanks as always.



Sponsored Link
Ads by Google

Response Number 1
Name: AJ (by William Jimenez)
Date: October 31, 2008 at 06:59:21 Pacific
Reply:

By the way I'm using batch command

Thanks.


0

Response Number 2
Name: IVO
Date: October 31, 2008 at 08:18:25 Pacific
Reply:

Yes under Win NT/2K/XP and Vista not under Win 9X/ME, so

if .... (
your command
your command
)

and you can code too

if .... (
your command
your command
) else (
command if FALSE
command if FALSE
)

The commands embeded between () are named Block Sequence.


0

Response Number 3
Name: AJ (by William Jimenez)
Date: October 31, 2008 at 08:39:58 Pacific
Reply:

Thanks IVO.

Exactly what I was looking for.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Batch file problem Batch or VC++ Type and it...



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: IF Statement

If statement question www.computing.net/answers/programming/if-statement-question/5232.html

Wildcards in if statement www.computing.net/answers/programming/wildcards-in-if-statement/10769.html

Autorun If Statement www.computing.net/answers/programming/autorun-if-statement/13492.html