This is like still beta. Use at own risk.
It is designed to help someone view any pc (basically files on it) when that someone is away from seth pc.
It can be used to look at any legal files that are on a server like, owned movies, and owned software, or documents, for people who do not have access to the server all the time (due to business) but when they need to download a file or burn it to CD, they can create a CD compilation "offline", or even save a short cut to that file so they can find it quickly on the server. All this is being done on their mobile PC.
Well I attempted coding in the "paste shortcut" but the shortcut are not being created. I will test it on a different machine.
I used the Clipboard.SetFileDrop to set the file (to be shortcuted to) but when it reaches the point of windows explorer reading the copied data (ie while in explorer and executing paste shorcut the short cut does not come out correct. (I wonder if it is some data that needs to be set to tell it it is a copy/paste shortcut operation and not a cut/past operation
Visually improved, got some icon code help from the guys at CodeProject.com, Big thanks. This beta may crash as a result of it, not tested on all windows os, only xp home. It basically use a primitive win32 method to load icons and reads the registry for associted file types and icons.
This routine fills the clipboard with a list of files that the user selected
Example of output is "C:\file1"
Code:
private void copyFakeToolStripMenuItem_Click(object sender, EventArgs e)
{
System.Collections.Specialized.StringCollection output = new System.Collections.Specialized.StringCollection();
//Get Selected
if (listViewOfflinePane.SelectedItems.Count > 0)
{
foreach (ListViewItem l in listViewOfflinePane.SelectedItems)
{
if (treeView1.SelectedNode != null)//when the appliction starts
{
//if (l.SubItems[1] != null)
if (l.SubItems[0].Text != "")
output.Add(treeView1.SelectedNode.FullPath.Replace(":\\\\", ":\\") + "\\" + l.SubItems[0].Text);
}
else
{
MessageBox.Show("Please select into a folder");
}
}
toolStripStatusLabel1.Text += " copied fake completed";
}
//Add to text in clipboard
//Clipboard.Clear();
Clipboard.SetFileDropList(output);//automatic clear done?
//Clipboard.SetData(DataFormats.FileDrop, "");
}
The paste shortcut fails even when the file does exist eg "C:\file1" exists
http://www.megaupload.com/?d=35EK5SCK
-----------------------------------------
Let's act on what we agree on now, and argue later on what we don't.
Black men leave Barbeque alone if Barbeque don't trouble you