>I have a line of code like the following in which I'm trying to zip some files.
>
>STORE 'e:\files\test.zip' TO m.zipfile
>STORE ALLTRIM(&path_name +"*.*") TO m.fileszipped
>RUN c:\windows\pkzip.exe -ex m.zipfile m.fileszipped
>
>If I look through the debugger
>m.zipfile "e:\files\test.zip"
>m.fileszipped "c:\temp\*.*"
>
>But this does not create my zipfile. Not sure whats happening because
>the Dos box flash up to quick to see any errors.
>
>
>Anyone any ideas?
You need to expand the variables before issuing the run command. Try:
STORE 'e:\files\test.zip' TO m.zipfile
STORE ALLTRIM(&path_name +"*.*") TO m.fileszipped
cRunCommand = 'RUN C:\WINDOWS\PKZIP.EXE -ex ' + m.zipfile + ' ' +m.fileszipped
&cRunCommand