zxtnt09 Posted March 31, 2015 Posted March 31, 2015 (edited) delete post please thanks Edited April 14, 2015 by hasan11
Moderators JLogan3o13 Posted March 31, 2015 Moderators Posted March 31, 2015 This: RunWait(@ComSpec & ' /c ' & 'netsh advfirewall firewall add rule name="test" dir=in action=allow remoteip=$var) Should be this: RunWait(@ComSpec & ' /c ' & 'netsh advfirewall firewall add rule name="test" dir=in action=allow remoteip=' & $var) zxtnt09 1 "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!
Moderators JLogan3o13 Posted March 31, 2015 Moderators Posted March 31, 2015 You need to define what "not working" means. Is it not adding the firewall rule, is it not pulling the IP address, what? Try changing the /c in your RunWait line to a /k. That way the command line window will stay open, and you can see if you're getting an error "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!
Tripredacus Posted March 31, 2015 Posted March 31, 2015 How come you use BinaryToString in the Msgbox but not the RunWait? zxtnt09 1 Twitter | MSFN | VGCollect
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now