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).
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.
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.
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
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.