VMware Horizon Community
projekttasse
Contributor
Contributor

Accessing real life files

Hi,

i have following situation:

I have a application which uses MS Access. It is under c:\application. Under this there are some directories, where txt-files are copied, so from within the application the txt-files are imported in a Access Database.

I fully virtualised the application, so i am able to start an work with it. But i am not able to import the files, since i don't have the directory structure on the real host. How can i solve this issue?

many thanks in advance.

Tim

0 Kudos
19 Replies
Lakshman
Champion
Champion

Tim,

If i understand correctly, you want to open (import) the user text files in Access ThinApp. Is that right?

0 Kudos
projekttasse
Contributor
Contributor

Yes, this is correct...

0 Kudos
Lakshman
Champion
Champion

Do you want to copy the same files/directory along with the ThinApp so that all users can access the same set of files?

What happens when the ThinApp is launched to open (import) the files?

0 Kudos
projekttasse
Contributor
Contributor

Yes,

when i want to import the files, it says, the files could not be imported.

0 Kudos
Lakshman
Champion
Champion

From where the files are imported? Locally or from network share?

0 Kudos
projekttasse
Contributor
Contributor

Locally

0 Kudos
Lakshman
Champion
Champion

Locally from the ThinApp or the system?

0 Kudos
Cievo
Commander
Commander

Are those txt-files stored also under C:\Application directory?

What directory is it correctly?

What is a isolation mode for that directory?

***Good question is half of the answer...***
0 Kudos
projekttasse
Contributor
Contributor

Hi,

the real life app resides unter c:\instatest.

The txt-file should become under c:\instatest\import\

merged should be okay.

I think, the easiest way should be a vbs Script, which copies the TXT files in the sandbox?

What do you think?

Tim

0 Kudos
Lakshman
Champion
Champion

Yes you can do that using VB script. I have written a similar script to copy the files from Virtual environment to the physical machine.

Please see this thread:

http://communities.vmware.com/thread/395316

0 Kudos
projekttasse
Contributor
Contributor

Lakshman,

many thanks, can i use this to copy from real life to virtual environment also?

Tim

0 Kudos
Lakshman
Champion
Champion

Tim,

You cannot directly copy to the virtual environment (that needs a rebuild) but you can copy the files to the sandbox.

Please see the script that i posted in this thread:

http://communities.vmware.com/thread/342474

0 Kudos
projekttasse
Contributor
Contributor

Rebuild should not be the problem, and can i use Wildcards, for example:

sap*.xml?

Tim

0 Kudos
Lakshman
Champion
Champion

Wildcards in the VB script? Not that i have tried of.

0 Kudos
Cievo
Commander
Commander

Try to run debugging entry point cmd.exe and look into virutal bubble if you see that files or not.

***Good question is half of the answer...***
0 Kudos
projekttasse
Contributor
Contributor

That script did not solve my issue.

0 Kudos
Lakshman
Champion
Champion

I guess you are trying to copy the files from the physical machine to the virtual bubble. I don't think it will work as it requires a rebuild of the ThinApp project folders.

Alternatively, you can try copying the files from physical to the ThinApp sandbox. In your script, replace %drive_C% by %appdata% and check.

0 Kudos
projekttasse
Contributor
Contributor

The directories does not reside under %appdata% but under \%drive_C%\Edi-Screener\Invoic

0 Kudos
Lakshman
Champion
Champion

If you want to copy the files to %drive_C% of the ThinApp project folder, then the script has to be called outside the ThinApp.

Also, make sure the package is rebuild so that the newly added files will be packaged within the ThinApp.

0 Kudos