I wish to import .txt file data into a VB6 program by copy and paste of the file name, much as one might do in windows explorer. I plan to use the File System Object to have my VB6 program then copy the user selected file from whatever was its original path to a new path specified by my VB6 program.

Having right-clicked the mouse on a source .txt file - say C:\MYFILE001.txt and then clicked "copy" , how please can I get VB6 to read that file path upon which I clicked?

Once I can extract the path of the file upon which I clicked (copy) into VB6 then the FSO will enable me to copy it to any other desired folder destination.

Simply attempting to paste into a text box does not work, since the clipboard does not contain file content information. When I attempt a paste, the paste option is greyed and not available.

I'd be most grateful for any suggestions


camoore

Wales, UK