I tried to use GETENV("RANDOM") but it doesn't work.
I have also tried echo %RANDOM% under cmd.exe but it works.
How to create random number using SCRIPTFTP?
I have also tried echo %RANDOM% under cmd.exe but it works.
How to create random number using SCRIPTFTP?
RANDOM is not an environment variable, so GETENV to it is not applicable... You can cheat:
[ScriptFTP]PRINT(EXEC('exit %RANDOM%'))[/ScriptFTP]
[ScriptFTP]PRINT(EXEC('exit %RANDOM%'))[/ScriptFTP]
wow, great workaround Wandrey
liked Script FTP? Try our other product Email Parser
It works. Thanks WAndrey.