delete to recycle bin

delete to recycle bin

isocam
Collaborator Collaborator
391 Views
1 Reply
Message 1 of 2

delete to recycle bin

isocam
Collaborator
Collaborator

Can anybody help

I have the following Visual Basic.net code...

 

My.Computer.FileSystem.DeleteFile("F:\3DCAD\test.txt", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.SendToRecycleBin)

if the file "test.txt" was in the "C" drive (eg "C:\test.txt") it works OK.

Can anybody tell me why it does not work over the network????

Many thanks in advance!

 

 

 

0 Likes
392 Views
1 Reply
Reply (1)
Message 2 of 2

ekinsb
Alumni
Alumni

I believe this is a limitation of Windows.  Deleting a network file permanently deletes it.  Try it interactively and you should see the same results.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes