/build/static/layout/Breadcrumb_cap_w.png

Softgrid OSD editting

Hi All

First time poster, long time reader.

I have a question regarding OSD scripting, I have a script in my OSD that calls a .exe that I created that sits on a file share and initiates a file copy of paticular files into the virtual bubble, this .exe will always copy files down so if an update is required its done on the central file and the user just closes and re launches there app to get the new version. No problem, works like a charm.

However when I disconnect from the network the app wont launch as it cannot find the .exe anymore. What I want is if the user is not connected to the network or if they are on VPN with no mapped drives the app will still launch and just use the old version of the file untill the user is connected to the network again. Is this going to be possible?

My OSD currently looks like:

<DEPENDENCY>
<SCRIPT TIMING="PRE" EVENT="LAUNCH" WAIT="FALSE" PROTECT="TRUE">
<HREF>\\MyServer:\\MyFolder\\MyFileCopy.exe</HREF>
</SCRIPT>

0 Comments   [ + ] Show comments

Answers (2)

Posted by: DannyC 15 years ago
Orange Belt
0
I'd suggest just having an 'if exists' statement at the start of the script - that way if the client can't 'find' that file (ie it's off the network) then it can skip the copy, and if it does find it then it can copy the file down..

You may need to either write this as a SCRIPTBODY script, or include the above in a script outside of the OSD (include it in the package) which you call from the HREF..
Posted by: earthworm jim 15 years ago
Senior Yellow Belt
0
Hi DannyC

Thanks for your quick reply, I used the If Not Exist "myfolder" Copy statement in the Scriptbody section to copy the files down, but then it gave the black CMD Prompt boxes which is what we dont want our users to see, hence why I wrote the VBScript as its can supress the boxes so the user sees nothing.

Unless I can use an If not Exist to run the exe on the file share? Can that be done, and if so what would the syntax be?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

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

Sign up! or login

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