V+ Remote Library Documentation TYPE "Unable to copy the file to the controller: ", status END ; List all files on the PC $file.spec = "C:\*.txt" CALL rm.pc.fdir($file.spec, 3, num.items, $items[], types[], status) IF (status TYPE "Unable to delete the file from the PC: ", status END FOR i = 1 TO num.items TYPE $items[i-1] IF (types[i-1] == 0) THEN TYPE " Is a file" ELSE TYPE " Is a directory" END END ; Delete the file on the PC CALL rm.pc.fdel($file, 3, status) IF (status TYPE "Unable to delete the file from the PC: ", status END .END rm.pc.fdel($file, wait.time, status) Abstract Delete a file on the PC.
Input Parameters Parameter Description $file name of the file to delete on the PC wait.time The amount of time to wait for the operation to complete. Output Parameters Parameter Description status Status of the operation: 0 = success, Example .PROGRAM ex1.rm.pc() AUTO REAL i, num.items, status AUTO $file, $to.file, $lines[3] AUTO $file.spec LOCAL REAL types[] LOCAL $items[] ACE Reference Guide, 18317-000 Rev A Page 823