static void WinApiClassestocopythefile(Args _args)
{
#avifiles
boolean present;
SysOperationProgress simpleProgress;
int i;
;
// startlengthyoperation();
SimpleProgress = SysOperationProgress::newGeneral(#aviupdate, 'Simple', 100);
if(WinAPI::fileExists("D:\\Ramesh_Ax_Docs\\AX Books\\AXInstallationGuide.pdf"))
{
for (i=1; i<=100; i++)
{
simpleProgress.incCount();
simpleprogress.setText(strfmt("%1% Of File is being Copied",i));
sleep(200);
}
WinAPI::copyFile("D:\\Ramesh_Ax_Docs\\AX Books\\AXInstallationGuide.pdf","D:\\Ramesh_Ax_Docs\\AXInstallationGuide.pdf",true);
Simpleprogress.kill();
}
else
{
info("This file does not exist");
}
info("The file has been Copied :)");
info(strfmt("The filesize is %1",WinApi::fileSize("D:\\Ramesh_Ax_Docs\\AXInstallationGuide.pdf")));
info(WinAPI::getComputerName());
//endlengthyoperation();
}
{
#avifiles
boolean present;
SysOperationProgress simpleProgress;
int i;
;
// startlengthyoperation();
SimpleProgress = SysOperationProgress::newGeneral(#aviupdate, 'Simple', 100);
if(WinAPI::fileExists("D:\\Ramesh_Ax_Docs\\AX Books\\AXInstallationGuide.pdf"))
{
for (i=1; i<=100; i++)
{
simpleProgress.incCount();
simpleprogress.setText(strfmt("%1% Of File is being Copied",i));
sleep(200);
}
WinAPI::copyFile("D:\\Ramesh_Ax_Docs\\AX Books\\AXInstallationGuide.pdf","D:\\Ramesh_Ax_Docs\\AXInstallationGuide.pdf",true);
Simpleprogress.kill();
}
else
{
info("This file does not exist");
}
info("The file has been Copied :)");
info(strfmt("The filesize is %1",WinApi::fileSize("D:\\Ramesh_Ax_Docs\\AXInstallationGuide.pdf")));
info(WinAPI::getComputerName());
//endlengthyoperation();
}