Files do not refresh in windows explorer from windows 8.1 device over usb. Access denied
I wrote a program on Windows 8.1 Embedded that scans items barcodes. It then creates text files in the documents folder containing logs and data about the items scanned.

Those files will eventually then be uploaded to a PC to be processed by a program on the PC.

The problem is, when I plug the device into the PC none of the files update/refresh within windows explorer (such as a log file or the files I'm creating to upload) even though I know for a fact the files are growing in size as I use the device while its plugged in.

I have to unplug the device and then plug it back in via USB to see the new file size with the newer data than the last time it was plugged in.

I also get an access denied error if I have the device the plugged in and the program grabs one of the files to write to it(even though I release the file after writing to it). I can even unplug the device, plug it right back in and access the file I just got access denied on.

Why are my files not refreshing in windows explorer on the PC, and why am I getting access denied errors when trying to access files on the device from the pc?

any ideas?

Thanks!
May 6th, 2015 9:56pm

Hi honda273,

Can we access the USB device when we didn`t run the program ?
According to my experience ,we will get the "access denied " error when the files is operated by another process or we didn`t have the permissions to operate the specific files .

We can use the process monitor to troubleshoot the access denied error message .To do this ,here is a link for reference:
Using Process Monitor to solve any problem, including DebugDiag
http://blogs.msdn.com/b/benjaminperkins/archive/2013/05/03/using-process-monitor-to-solve-any-problem-including-debugdiag.aspx

To check the permission issue ,we can use iscacls to check whether we gain access to the files .To do this :
Run icacls (path to the file)

We can try to check the Event Viewer for related detailed error information .

Considering this is related to the usb device ,we can try another USB port to have a check .We also can try to update the USB drivers .

For this issue ,I am quite not sure whether it is caused by the program .
If it is possible ,we can try to run the program from another machine to verify whether it is caused by the machine or the program.
If it is proved there is something wrong with the program ,we can ask for help from Our MSDN Forum.
MSDN Forum
https://social.msdn.microsoft.com/Forums/en-US/home

Best r

Free Windows Admin Tool Kit Click here and download it now
May 8th, 2015 2:44am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics