Sometimes there might be a requirement to keep some files in the LG machine for temporary use. Have the file included in the script which needs to be copied to LG machine. Use the below mentioned commands to create a temporary folder inside c:\temp folder and copy the file from script folder to newly created folder in LG machine. Once the use of file is completed, use the last command to delete the newly created folder. Char command1[]=”mkdir \”c:\\temp\\\ext_jar”;
Char command2[]=”xcopy /Y filename.pdf \”c:\\temp\\\ext_jar\””;
Char command3[]=”RD /S /Q \”c:\\temp\\\ext_jar\””;
System(command1);
System(command2);
Lr_think_time(5);
System(command3);