Quantcast
Channel: Sage X3 – Tips, Tricks and Components
Viewing all articles
Browse latest Browse all 1519

How to Copy FIle in Server using .bat Process

$
0
0

In Sage Enterprise Management (Sage X3) we may need to copy the file from one folder to another folder. We will do it by using .bat process.

Syntax:

Subprog MoveFile(PATH1,PATH2)

Value Char PATH1

Value Char PATH2

Local integer RETURN_VALUE

RETURN_VALUE=Delfile(filpath(“TMP”,””,””,””,””,adxmac(0))+’\Copy.bat’)

Local Char WRET(250) (0..4)

Openo filpath(“TMP”,””,””,””,””,adxmac(0))+’\Copy.bat’ Using [FACS]

WRET(0)=”copy “+PATH1+” “+PATH2

Wrseq WRET(0) Using [FACS]

Openo Using [FACS]

System CHAINE=(filpath(“TMP”,””,””,””,””,adxmac(0))+’\copy.bat’) ###To execute the bat file

End

Here,

PATH1 = Source Location

PATH2 = Destination Location

Hope this helps!

About Us
Greytrix is a one-stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development and implementation expertise.

Greytrix caters to a wide range of Sage Business Cloud Solutions such as Sage Enterprise Management (Sage X3), Sage Financials (Sage Live), Sage Intacct and Sage Accounting (Sage One). Our unique GUMU™ integrations include Sage Intacct with Sage CRM | Salesforce, Sage Enterprise Management with Sage CRM | Salesforce.com and Magento eCommerce. We are migration specialists for Sage Intacct and Sage Enterprise Management from Sage 50 US, Sage Pro, Sage 100, Sage 300 and QuickBooks. We also offer best-in-class Consulting, Implementation and Technical Support for Sage Enterprise Management, Sage Intacct and Sage Financials. We have developed applications integrations for Sage Enterprise Management, Sage Intacct and Sage Financials to Sage business partners, resellers and Sage PSG worldwide.

For more information on Sage Business Cloud Solutions, please contact us at sagecloud@greytrix.com. We will be glad to assist you.


Viewing all articles
Browse latest Browse all 1519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>