Cameyo

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: How to provide external file to package?
Anonymous

Date:
How to provide external file to package?
Permalink   
 


I have an application that I virtualized using Cameyo. I am trying to start Cameyo using a command line (-exec) and one of my argument is a file generated outside the package. How can my application inside the package access it?

Here is my current command line:

Package.cameyo.exe -exec "MyApp.exe C:\Temp\Input.xml"

Package.cameyo.exe = my Cameyo package application

MyApp.exe = my app virtualized inside the package

C:\Temp\Input.xml = the argument I want to send to MyApp.exe, it is the file I generated outside the package.

 

Thanks!



__________________


Guru

Status: Offline
Posts: 912
Date:
Permalink   
 

Your format is correct, but try without quotes, i.e. package.cameyo.exe -exec MyApp.exe C:\Temp\Input.xml, or with quotes around both the virtualized app name and the argument, i.e. package.cameyo.exe -exec "MyApp.exe" "C:\Temp\Input.xml"



__________________
Anonymous

Date:
Permalink   
 

Thanks for your answer mule, it works great!



__________________


Guru

Status: Offline
Posts: 912
Date:
Permalink   
 

Another thing you can try is dragging your xml file to your virtualized package.

Yet another thing if your xml file doesn't go through changes like name and location: open your package in Package Editor, click Change across from Startup, and add your xml file to Parameters under Specific command.  (You can use Cameyo path variables here.)  Click OK and Save or Save as.  Now your package will always open using the xml file.

Finally, if your xml goes through changes, you might be able to still have your package open using it by setting up Custom events in Package Editor's Advanced tab.



__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard