DSQUERY / DSADD / DSGET - Tips

bcairnsbcairns Member Posts: 280
Hello -

Playing around for the command prompt it occured to me that you really could use use MSDOS Batch files instead of retyping the commands...

http://www.allenware.com/mcsw/bus.htm

Just create plain text files with a ".bat" extention.

"myfile.bat"

be sure to use a "pause" command at the end to keep the command window open....

Example Batch File:

echo This is a sample batch file displays dsget help
dsget /?
pause

This tip may seem obvious to some but I hope it helps at least one person :)

Comments

  • sprkymrksprkymrk Member Posts: 4,884 ■■■□□□□□□□
    I never got into vbscript very much simply because I never saw the advantage it had over the Windows shell and batch files. I run dsquery scripts to check for computer/user accounts that are expired or disabled, expired or old passwords, etc. As mentioned in my other posts I use the for command in batch files for tons of stuff, and pstools, support tools, and resourse kit tools provide so much flexibility that there isn't much I can't script.

    That was the long way of saying "I agree with you". icon_lol.gif
    All things are possible, only believe.
  • elove_jmelove_jm Member Posts: 12 ■□□□□□□□□□
    bcairns wrote:
    Hello -

    Playing around for the command prompt it occured to me that you really could use use MSDOS Batch files instead of retyping the commands...

    http://www.allenware.com/mcsw/bus.htm

    Just create plain text files with a ".bat" extention.

    "myfile.bat"

    be sure to use a "pause" command at the end to keep the command window open....

    Example Batch File:

    echo This is a sample batch file displays dsget help
    dsget /?
    pause

    This tip may seem obvious to some but I hope it helps at least one person :)

    thts kool, i'm also preparing for my 290....
    :D
    when are you going to schedule ur exam?
  • bcairnsbcairns Member Posts: 280
    sprkymrk wrote:
    That was the long way of saying "I agree with you". icon_lol.gif

    Hehehe I love it

    @elove_jm = not sure when I will go take the test ...probably in another month or so, I keep getting side tracked with job interviews :)
Sign In or Register to comment.