VMware Horizon Community
btrabue
Enthusiast
Enthusiast
Jump to solution

Script to copy folder out of package to local drive

Hello-

I have a script created that will create a folder on the local drive and it is supposed to grab a folder that I have in the package and copy it inside the newly created folder.  I have the script in the root of the package along with the folder that it needs to copy.  When I run the executable on the thinapp I receive the following error...

pic1.JPG

If I click ok the thinapp will open but the folder was never copied to the local drive.  Can someone please take a look at the attached script that I have created and let me know what path needs to be in the script to locate the folder that I am trying to copy.

Thank you!

Reply
0 Kudos
1 Solution

Accepted Solutions
Lakshman
Champion
Champion
Jump to solution

Hi,

I have modified the script a little and tested. Please find attached the same.

View solution in original post

Reply
0 Kudos
3 Replies
Lakshman
Champion
Champion
Jump to solution

Hi,

I have modified the script a little and tested. Please find attached the same.

Reply
0 Kudos
Squidly_Man
VMware Employee
VMware Employee
Jump to solution

Don't forget File System/Folder Isolation can come into play here.  If the destination folder exists within the project, the folder should definitely be set to merged isolation and probably be empty (other than the ##ATTRIBUTES.IMI file).  If the destination folder doesn't exist in the project then its parent folder (or the project as a whole) should be set to merged isolation.  Don't forget, changes to folder isolation can also be done on the fly with scripting.  Check out the ThinApp Bootcamp session on scripting which releases in the next day or so.  http://vmware.com/go/thinappbootcamp

-Dean F.

-Dean F. https://www.vmware.com/support/pubs/identitymanager-pubs.html
Reply
0 Kudos
TobyFruthParson
Enthusiast
Enthusiast
Jump to solution

Typo:  SquidlyMan meant to say:

"(other than the ##ATTRIBUTES.INI file) "

While most readers probably knew what he meant, I know there are some who are new to ThinApp who might be wondering "What is ##ATTRIBUTES.IMI?"

Toby Fruth, Sr. Specialist, The Parsons Corporation
Reply
0 Kudos