is there any pdf | chm files about the BATCH for downloading

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
batcheller
Posts: 2
Joined: 26 Jun 2011 08:50

is there any pdf | chm files about the BATCH for downloading

#1 Post by batcheller » 26 Jun 2011 09:40

hello,every one!I have just registed in the forum,can anyone give some help?
I want to download some files . thanks!

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: is there any pdf | chm files about the BATCH for downloa

#2 Post by Cleptography » 26 Jun 2011 10:52

Yes it is called C:\>HELP

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: is there any pdf | chm files about the BATCH for downloa

#3 Post by aGerman » 26 Jun 2011 13:15

@Cleptography
Be gentle with our new members lol

@batcheller
Cleptography is right.
[Windows]+[R] -> cmd -> OK
... opens a command prompt. Type help and hit Enter to get a command list with a short description.
For extended help of a particular command type command /?.
Also have a look at the command index here on DosTips. On the bottom of this site you will find a batch code which will create your own command index.

Regards
aGerman

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: is there any pdf | chm files about the BATCH for downloa

#4 Post by Cleptography » 26 Jun 2011 15:35

aGerman wrote:@Cleptography
Be gentle with our new members lol


@aGerman
0x4920776173206265696e67206e696365203a29

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: is there any pdf | chm files about the BATCH for downloa

#5 Post by aGerman » 26 Jun 2011 16:33

Of course you were. And you were succinct :lol:
Never mind. Mostly I'm also a bit short-spoken.

Regards
aGerman

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: is there any pdf | chm files about the BATCH for downloa

#6 Post by Cleptography » 26 Jun 2011 19:10

417563682065696E20626C696E646573204875686E20
66696E646574206D616C2065696E204B6F726E204461
7320697374207A776172206E69636874206765726164
6520736368696E206E75747A6C696368

batcheller
Posts: 2
Joined: 26 Jun 2011 08:50

Re: is there any pdf | chm files about the BATCH for downloa

#7 Post by batcheller » 26 Jun 2011 22:03

thanks everyone!I just konw a bit .
:wink:
by the way,I especially want to know about the use of command:'call echo',
i think it's hard for me to learn!Give me some examples? :mrgreen:

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: is there any pdf | chm files about the BATCH for downloa

#8 Post by orange_batch » 27 Jun 2011 05:13

viewtopic.php?t=1486

...and...

viewtopic.php?f=3&t=1955&p=8582#p8582

It may be better/easier to use delayed expansion. This trick usually isn't necessary for scripts.

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: is there any pdf | chm files about the BATCH for downloa

#9 Post by aGerman » 27 Jun 2011 13:54

@Cleptography
The meaning of "Auch ein blindes Huhn findet mal ein Korn." is ...
"Even a blind hen sometimes finds a grain of corn."
"Even a blind squirrel finds a nut once in a while."
"A blind man may sometimes hit the mark."
"Every dog has its day."
"Even a broken clock is right twice a day."
... success obtained through dumb luck.
BTW Are you learning German?

@batcheller
Keep in mind:
- a variable is enclosed in percent signs
- a variable after a command is usually expanded to its value
- a percent sign can be escaped by a second percent sign

call echo is a method to expand nested variables.

Code: Select all

echo on
set "a1=test"
set "n=1"
call echo %%a%n%%%
pause

How does it work:
call echo %%a%n%%%
The red ones escape the green ones, the blue ones enclose variable n. After executing of call the red ones are removed and %n% is expanded to the value 1.
echo %a1%
Well, now its clear that echo expands %a1% to test.

Regards
aGerman

Post Reply