Sign in to follow this  
Followers 0
fillalph

Hehe, batch commands

3 posts in this topic

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[

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

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[

0

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.