Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2012 Copy & Paste through RemoteApp

$
0
0
I'm trying to copy and paste files between RemoteApp by using
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

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?

Viewing all articles
Browse latest Browse all 27554

Trending Articles