Prev | Current Page 384 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"


$M Displays the remote name associated with the current drive letter. If this is a local drive,
then the system displays an empty string.
Using the Rem Command
The Rem (Remark) command lets you add comments to your batch files. Given that batch files often
use difficult to read coding sequences and that you??™ll probably want to modify them at some point,
lots of comments are advisable. In fact, you??™ll want to add at least one comment for each complex
line of code in your batch file. Many people have lost use of interesting and helpful batch files
because they contain complex code that becomes unreadable after the initial writer forgets what the
code means.
Using the Shift Command
A batch file supports a maximum of 10 command line arguments numbered %0 through %9. However,
you might run into situations where you need more than 10 command line arguments. The
Shift command can help you shift in these additional arguments. The new arguments replace
existing arguments. In fact, all of the arguments are shifted one position, so the argument in %1 now
appears in %0. Unfortunately, the argument in %0 is shifted out so that it??™s no longer accessible.


Pages:
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396
wynajem mieszkań Kraków rolki napinacza paska klinowego A*Teens skrzynki do internetu prezenty