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


Please log in to comment



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.

Answered 04/19/2013 by: SnowLyric
Second Degree Brown Belt

  • 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?
  • 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??
  • and if you have put a check for folder then it will just exit there and then..
  • 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.
Please log in to comment
Answer this question or Comment on this question for clarity