how to execute or only once in osd file..
HI ALL,
I have included a vb.script in <SCRIPTBODY> of OSD file. That will create a folder structure in local user machine .
I have just included a vbscript to create folder structure and I want to run vbscript only once(first time) while pre-launch time not every time for pre-launch..How can I achive this..any mechanism is there in osd file for this??
Thanks in advance,
Raj Sam
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
SnowLyric
11 years ago
Have you tried to placing it in PRE STREAM?
Also, you can include a condition to check the folder structure before creating it. That way, it creates only if they don't exist.
Comments:
-
thanks SnowLyric..Now I have changed to PRE STREAM and included a condition to check the folder structure.it working fine......
.But is there any other way in <SCRIPTBODY>, I can mention not to execute the script second time? - RajSam 11 years ago -
I think it will work everytime... think of it in this way that if the users are using different machines while streaming the application then the script should run every time, right?? - piyushnasa 11 years ago
-
and if you have put a check for folder then it will just exit there and then.. - piyushnasa 11 years ago
-
By design the scriptbody part in the OSD is unmanaged. This gives you great power, you can do as you please in your script. Unfortunately with great power comes great responsibility; you have to manage the syntax and behaviour of the script yourself. The suggested check is the most sensible one. - EVEEN 11 years ago