FUENTE ORIGINAL = https://kb.sagedev.it/index.php?title=Gestione_file https://kb.sagedev.it/ Jump to navigation Jump to search Contents 1 Dimensione dei file 2 Scrittura/Lettura 3 Cancellare 4 Creare cartella 5 Spostare 6 Copiare file esterni 7 Verifica presenza file e cartelle 8 Elenco file di una cartella 9 Estensione 10 Altri comandi 11 Caricamento 12 adxirs e adxifs Dimensione dei file [ edit ] Per sapere la dimensione di un file: filinfo(YFILEI,7) è anche un modo per sapere se il file esiste: If filinfo(YFILEI,7)<0 Infbox "File non trovato" End Endif Scrittura/Lettura [ edit ] Codice di esempio per la lettura/scrittura di file: Local Char YFILEI(250),YFILEO(250) Local Clbfile YETI(4) YFILEI = filpath("TMP\ETICHETTE",'Eti_Standard',"eti") If filinfo(YFILEI,7)<0 Infbox "File di input non trovato" End Endif YFILEO = filpath("TMP\ETICHETTE",'Etichetta', "txt") adxirs = ''
Fuente original: https://www.greytrix.com/blogs/sagex3/2012/01/20/how-to-invokeexecute-external-applications-from-within-sage-erp-x3/ By Greytrix | January 20, 2012 0 Comment Consider some instances when we may need to invoke an external application from within Sage X3. The best example for such a requirement would be to export data to an excel file or any other format and then open the same using excel or any other application. Check product: Sage CRM – Sage X3 Integration on Marketplace Here is how you can do that! System CHAINE=’#@”C:\Program Files (x86)\Microsoft Office\Office12\WINWORD.EXE”‘ System CHAINE='”C:\Program Files (x86)\Microsoft Office\Office12\Excel.EXE” “D:\Junk\Default Excel File.xls”‘ (Will open the Excel File “Default Excel File.xls”) The above command line will open Microsoft Word Application and an Excel File. You can test your command line using Development -> Utilities -> Miscellaneous -> System Orders Option . Notes: The # represents th