Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 8.1 Operating System: Windows XP
Hello! My question is about a batch processing. Here is my example below. The location of 'InputDesign.xlsx' is hardwired now. Is it possible to designate the path variablely using a DOS command argument ? How can I get 'D:\Origin\' from 'Run.bat' in 'ReadDraw.ogs' ?
Thanks in advance! hkkim ---------------------------------------------------------- Run.bat: Origin81.exe -r (run.section(D:\Origin\ReadDraw.ogs,main)) ---------------------------------------------------------- ReadDraw.ogs: .... newbook; // create new workbook before string fn$=D:\Origin\InputDesign.xlsx; if(0 == exist(fn$) ) return; // Check for 'not exist' impexcel fname:=fn$; // Import Excel file ----------------------------------------------------------