Jump to content
Sign in to follow this  
r0llik

[help]Remote CP

Recommended Posts

r0llik

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 by r0llik

Share this post


Link to post
Share on other sites
r0llik

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)

Share this post


Link to post
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
Sign in to follow this  

×