ENTERg Posted March 24, 2010 Posted March 24, 2010 hi all ...i want to create a script but when i run it in a local network i want for certain ip to run a different file. for example : when i run the script from ip : 192.xxx.xxx.x.xx i want at the end of the script to have a certain command (like a run command) and create many scripts that will execute this . thx in advance for your help !!!
Fire Posted March 24, 2010 Posted March 24, 2010 İ think you need psexec from MS.PsExecand then write your script for it. [size="5"] [/size]
funkey Posted March 24, 2010 Posted March 24, 2010 Run the file with a parameter. Look at $CmdLine in helpfile. Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning.
ENTERg Posted March 29, 2010 Author Posted March 29, 2010 İ think you need psexec from MS.PsExecand then write your script for it.i didn t understand how psexec is working..thx 4 the reply anyway ...
99ojo Posted March 30, 2010 Posted March 30, 2010 (edited) Hi, another solution might be: IPAdress Program 192..... command1 193..... command2 If StringInStr (StringLeft (@IPAdress1, 3), "192") Then Command1 ElseIf StringInStr (StringLeft (@IPAdress1, 3), "193") Then Command2 EndIf ;-)) Stefan Edited March 30, 2010 by 99ojo
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