Jump to content

HELP ME PLZ .... _RunDos


Recommended Posts

  • Moderators

ahmeddzcom, I don't do a lot in batch, but it appears you're trying to shut down a machine if it's computername matches "MiniXP" to a certain number of characters, is this correct? If so, I would suggest looking first in the help file for StringinStr: something like this (pseudocode)

If part of the @COMPUTERNAME = "MiniXP" Then ...

Once you have this piece down, take a look at Shutdown() in the help file. You can use this to mimic the shutdown command in your batch file.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

ahmeddzcom, I don't do a lot in batch, but it appears you're trying to shut down a machine if it's computername matches "MiniXP" to a certain number of characters, is this correct? If so, I would suggest looking first in the help file for StringinStr: something like this (pseudocode)

If part of the @COMPUTERNAME = "MiniXP" Then ...

Once you have this piece down, take a look at Shutdown() in the help file. You can use this to mimic the shutdown command in your batch file.

tnx ...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...