Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Sign in to follow this  
fillalph

Hehe, batch commands

Recommended Posts

fillalph    0

I got a question about some simple batch commands (I know I could use a full path names, but this looked cool

@ECHO OFF
setlocal
set PATHTOFIXES= \
CMDINFO /ht:Q252795
IF ERRORLEVEL 0 GOTO a
IF ERRORLEVEL 1 GOTO 1
:a
252795_w2k_sp3_x86_en.exe -z -m -q -n
GOTO 1
:1
CMDINFO /ht:Q276471
IF ERRORLEVEL 0 GOTO b
IF ERRORLEVEL 1 GOTO 2

and it just continues like that, but what does setlocal do? and set pathtofixes (is that defining something)? How does the computer know what pathtofixes is :)? I am taking that the .bat is one directory higher than the actual fixes (because of the \)?

]Bonkers[

Share this post


Link to post
Share on other sites
JohnMK    0

Hi there,

Thank you for your help in my previous thread, I genuinely appreciate it. That said, do you prefer a spoon or a fishing rod? :)

On your setlocal question, I found a source for information: Setlocal

Share this post


Link to post
Share on other sites
fillalph    0

Thanks for the reply JohnMK. I still don't get it, but no worries (I am too noobish). Hehe, about the comment before, forgive me. This was the third forum I was answering questions in (3am now) and I got carried away (some guy couldn't figure out that to play a DVD in his comp he needed to have a DVD player software installed (windows media player alone didn't work for him (DAH), I almost cried... what an id***). So, my apologies. (By the way, did the link for you work on your problem?)

That link you gave me was much better than the sites I was getting from google.ca. Thanks

]Bonkers[

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×