Monday, 17 December 2018

file movement in batch (find and replace) in batch find and delete duplicate file

there might be a duplicate file while moving to destination location in that case ,


public boolean getFileExists(filepath _fileName)
{
   System.IO.FileInfo   fileInfo;
   new InteropPermission(InteropKind::ClrInterop).assert();
   fileInfo = new System.IO.FileInfo(_fileName);
   return fileInfo.get_Exists();

}


    if(this.getFileExists(strFmt('%1%2%3', DestinationPathFolder, fName, fType)) == true)
    {
        System.IO.File::Delete(strFmt('%1%2%3', DestinationPathFolder, fName, fType));
    }

intercompany PO multiple product receipt by x++

public void processStampICPO(PackingSlipId _deliveryNote,                             Transdate _deliverydate,                             ...