r0llik Posted February 26, 2012 Posted February 26, 2012 (edited) I have a problem with code below. Its so glitchy please help me to fix it/share with me another remote CP. $Commandlink = "Some.txt/test.txt" $tfile = "temp.txt" While 1 if $lminutes = @MIN then ;nothing Else $tfile = InetGet($Commandlink, @ScriptDir & "" & $tfile) $data = FileOpen($tfile) $Command = FileReadLine($data,1) $param1 = FileReadLine($data,2) $param2 = FileReadLine($data,3) $Lminutes = @MIN ;##### Command Execution if $Command = "echo" Then EndIf if $Command = "alpha" Then EndIf if $Command = "test" Then MsgBox(0,"","Test.") EndIf InetClose($tfile) FileClose($tfile) EndIf WEnd Edited February 26, 2012 by r0llik
r0llik Posted February 26, 2012 Author Posted February 26, 2012 So this script does'n work. I have 2 problems: 1) Commands doesnt executing 2) When it download temp file first time its ok, but when it download second time its just creates file with name of size(16 bytes = name -16)
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