Cameyo

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Question about saving a file
Anonymous

Date:
Question about saving a file
Permalink   
 


Hi.

 

I am new user of Cameyo and I really like it. I have one question about saving files. I virtualized my application into a Cameyo package. When this package is executed, I would like to generate 1 log file (the results) to appear in the same folder as the package.

Example:

C:\Temp\MyPackage.cameyo.exe

I would like the file to be generated in

C:\Temp\Results.log

I know about the isolation but I am not sure where I should generate my log file (I don't want to hardcode C:\Temp as the user could execute the package from any folder).

Thanks



__________________


Guru

Status: Offline
Posts: 912
Date:
Permalink   
 

You should be able to accomplish what you want by using a Custom event and Copy or Move from the command line, i.e. open package in Package Editor, click Advanced tab, click Custom events, and decide when you want the event to be run (On start or On stop); you want unvirtualized.  Don't forget to Save or Save as.



__________________


Veteran Member

Status: Offline
Posts: 39
Date:
Permalink   
 

Sorry,
although I rarely use the custom event function, I still want to ask:
what syntax should I use in the Custom events? Just like the cmd, or other syntax? Thanks.

__________________


Guru

Status: Offline
Posts: 912
Date:
Permalink   
 

Think of it like the Run box, so if you want to use command line commands, you need to run cmd with arguments.

1. Choose On start or On stop, unvirtualized or virtualized
2. Command to run: cmd
3. Arguments: e.g. /c del ..\file.ext, /c copy .\subfolder\file.ext location, /c move "%userprofile%\desktop\file.ext" "%userprofile%\my documents"



-- Edited by mule on Saturday 20th of April 2013 08:30:16 AM

__________________


Veteran Member

Status: Offline
Posts: 39
Date:
Permalink   
 

Sorry, but I still get confused...
For example, if I want to run this:
ntsd -c q -p 1584 in cmd,
what should I add in the custom events, or is it possible? Thanks.

__________________


Guru

Status: Offline
Posts: 912
Date:
Permalink   
 

1. Choose On start or On stop, unvirtualized or virtualized
2. Command to run: cmd
3. Arguments: /c ntsd -c q -p 1584



__________________


Veteran Member

Status: Offline
Posts: 39
Date:
Permalink   
 

Thanks. It is really helpful for me to deal with the packages.

__________________
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