[Gambas-user] how can I run my Shell script in a directory?
Stefano Palmeri
rospolosco at ...152...
Wed Jul 15 10:36:05 CEST 2009
Il martedì 14 luglio 2009 18:48:32 Szenográdi Norbert ha scritto:
> Hi,
>
>
> Can anyone help to me with subject?
>
> regards, Sevoir
>
Where is your script? Is it in your project folder?
Let's say it's in your project folder and is called "thescript.sh"
DIM sShellScript AS String
'Define the destination of your script
sDestDirectory = "destinationdirectory"
'Copy the script to it's destination
COPY "thescript.sh" TO sDestDirectory &/ "thescript.sh"
'Then run the script within the final directory
SHELL "cd " & sDestDirectory & "; ./thescript.sh" WAIT
>
> ---------------------------------------------------------------------------
>--- Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list