I am trying to detect a usb stick to copy a file from within my program, but it is not being seen by the following code:
Code: Select all
If Dir("/dev/sdb1") <> "" Then
Print "Copying Snapshot.txt"
ErrControl.Result = Filecopy ("/home/hmi/reports/Snapshot.txt" , "/dev/sdb1/Snapshot.txt")
Endif
Remming out the Dir test, still creates an error copying to the device.
Similarly using the Target as "/media/50E2-7AE0/Snapshot.txt" also creates an error.
Because the operator does not have browsing permission, and may plug a usb stick in that has a totally
different identifier, I have to use the /dev/sdb1 device description.
I can do the normal Filecopy on the booted drive by using a path and as the owner of both drives,
but have never tried to copy to another drive from FB using Linux.
Regards
Regards