cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Save and Open in OpenOffice (sh command)

GeurtLagemaat
1-Newbie

Save and Open in OpenOffice (sh command)

Hi,

I have this code:

local i;

local dir;

local sAppPath;

for (i = 0; dir = get_custom_dir(i); i++) {

if (match("$dir",'bcfi')){

sAppPath = "$dir";

break;

};

}

local sTmpSave = "$sAppPath" . '\tmp\currexport.xml'

save_as "$sTmpSave";

sh 'C:\Program Files (x86)\OpenOffice.org 3\program\swriter.exe $sTmpSave'

It does save the current document in a custom application directory. So far ok, now i'm trying to start OpenOffice, no problem, bet then it fails to open the just saved XML document. I can not figure out the way I should pass the sTmpSave variable to the sh command, please help!?

Regards, Geurt Lagemaat

0 REPLIES 0
Top Tags