c# - Writing resource files to USB -
i want write files c# resources usb drive when plugged in. got code working detects if usb drive inserted. problem encounter writing resource files, here tried:
if (file.exists(e.drive + "\autorun.inf") == false ) { file.copy(@"resources\update.ico", e.drive); file.copy(@"resources\autorun.inf", e.drive); }
e.drive
contains path of inserted usb stick (e.g f:\). error message:
could not find part of path 'f:\'.
the sec argument file.copy cannot folder, have supply finish path.
c# resources copy usb
No comments:
Post a Comment