T O P I C R E V I E W |
gelokkir2 |
Posted - 02/17/2003 : 06:29:47 AM I would like to write a script that opens multiple ascii files, each in a separate worksheet, and then saves them as separate origin files. There is an example on the originlab website, but it doesn't seem to be complete, and so it doesn't work. I would appreciate any help you can offer.
Thank you.
|
4 L A T E S T R E P L I E S (Newest First) |
gelokkir2 |
Posted - 02/18/2003 : 6:54:20 PM Yes,this was the problem. It's now working alright.
Thank you very much for your help! |
Mike Buess |
Posted - 02/17/2003 : 1:47:06 PM Are you sure that the directory named in the save command exists? I got this error message when I tried to save to a folder that doesn't exist...
"Can not open file C:\Data\SampleData.ogw for saving. File is in use or read only."
Mike Buess Origin WebRing Member |
gelokkir2 |
Posted - 02/17/2003 : 09:10:41 AM Hi, Thank you very much for your help. This seems to work. However, although it opens all the files correctly it gives an error message (something like: file cannot be saved because it's being used) when it tries to save them. Any ideas?
thank you.
|
Mike Buess |
Posted - 02/17/2003 : 08:41:07 AM Hi,
I don't know which script you're referring to or why it doesn't work, but this should do what you want...
getfile -m; // get multiple ASCII data files for(i=1;i<=count;i+=1) { getfile -g i; // get file name into %A win -t data; // bring up a new worksheet open -w %A; // import the data save -i C:\Data\%H; // save wks as C:\Data\wksname.ogw (adjust path as needed) }
Mike Buess Origin WebRing Member |