/build/static/layout/Breadcrumb_cap_w.png

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)

Posted by: SnowLyric 10 years ago
Second Degree Brown Belt
1

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 10 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 10 years ago
  • and if you have put a check for folder then it will just exit there and then.. - piyushnasa 10 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 10 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ