09-21-2016, 07:34 AM
The following function compiles and runs properly under QM. However, I need to run it as .exe. The executable is created but when I run it, I get the message :
at statement
I would appreciate your advice.
Function tempf10
Quote:Error (RT) in <open "tempf10 /284">tempf10: invalid argument. <help #IDP_ERR>?
at statement
Quote:s.get(a[i] j-1 1)
I would appreciate your advice.
Function tempf10
str dFold
rget dFold "dFold" "\B4SES" RegMisc
ARRAY(str) a
GetFilesInFolder a dFold "" 0 2
str star s
a.sort
int i j
for i 0 a.len
;,out a[i]
,DateTime t=val(a[i] 1 _i) ;;use DateTime for times. Use long for size.
,str sPath=a[i]+_i+1
;,out sPath
,j=find(a[i] ".zip")
,s.get(a[i] j-1 1)
,star.from(s ":")
,str param=F"x -t7z {sPath} -o{star} "
,
,str sl.formata("%s[]" param)
,
sl.setfile("C:\tmp\hlp.txt")
run "C:\tmp\hlp.txt"
MES mm
mm.style="YN?"
mm.timeout=5
i=mes("Restart" "Confirm" mm)
;