Autore Topic: Includere una cartella nella directory di un progetto  (Letto 506 volte)

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.724
  • Ne mors quidem nos iunget
    • Mostra profilo
Includere una cartella nella directory di un progetto
« il: 18 Maggio 2013, 13:55:09 »
Vorrei riportare questa discussione apparsa nella M.L.I.:


« Is it possible to include folder (which include lot of files) in to the
project directory? This folder will have all supporting files required to
run my application. The same directory is required to copied in to other
folder while running the application.

When i run the program from ide it copies folder located in project root
directory to desired directory. However, after compilation it does no do
the same.

J Sundar
»


« In a Linux application you can store it in the .local/myapp user folder.

Fabien Bodard
»


« At the moment, you must do that by hand with a file manager (just put
the folder directly into the project directory). The IDE is not yet able
to copy an entire directory.
--
Benoît Minisini
»


« Why does it so? Copying shell script/file to temp directory is working
perfectly well. The following gambas inbuilt command works perfectly
Copy Application.Path & "/file" & " path/to/destination"
But not this one
SHELL "cp -r " & Application.Path & "/folder" & " path/to/destination"
I am writing from non gambas system. So leave the syntax error if any.

One more thing i have noticed is that when i run the script with above
command from IDE, folders are copied to destination but after compilation
the same does not work. Is there any way to copy folder which is located in
the project directory to destination path?

J Sundar
»
« Ultima modifica: 20 Maggio 2013, 11:04:16 da vuott »
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »