I'm trying to copy and paste files between RemoteApp by using
It works when the application is run on the local machine but the IDataObject is always nothing when trying to copy/paste from local machine to RemoteApp server. Any ideas?
Code:
Dim data As IDataObject = Clipboard.GetDataObject
If data.GetDataPresent(DataFormats.FileDrop) Then
For Each s As String In data.GetData(DataFormats.FileDrop)
Dim newFile As String = Path.Combine(DirectoryPath, Path.GetFileName(s))
File.Copy(s, newFile)
Next
End If