El 07/03/13 13:40, Jose Monteiro escribió:
> text = "cd ~/.relat_bact && rm -rf Modelo*.odt && zip -r " & "MA" & 
> Mid$(ListBox1.Text, 1, 9) & ".odt  ."
>    Shell text Wait
>
> 1 - navigating to ~/.relat_bact directory and deleting the odt file is 
> working fine.
>
> 2 - generating the "zipped" odt file (MAxxxx.odt) using the files and 
> directories inside ~/.relat_bact is not working. The error message is: "zip 
> I/O error: No such file or directory
> zip error: Could not create output file (MA000004/12.odt)"
>
> 3 - If I type these commands directly on a terminal it works fine.

>
> Thanks in advance

There is an extra slash "/" in your final string. Check that in the Mid 
function. BUT...

Why do you use shell command? Gambas have its own commands to do what 
you want. See "working with files" in the manual wiki and the 
gb.compress component.

Regards

-- 
Jesus Guardon

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to