How can I copy the name of a file, I selected by clicking?

Hello

I have a camera controlled by an interface Excel (VBA). Truogh this interface I control motors and tiara (to the report) and the data record in a database. When I use the load of the Excel button, the VBA application call the script Load_DATA_BOF tiara. VBS, (after completing the new data for the report) and the report.  Now for what it work, I copy the name of the name of the file that I want to load in a TextBox control, and all data are to be stored in a txt (protocol_for_load.txt) file and the tiara takes away the data for the report.

What I want to do is to fill automatically the name of file in the protocol_for_load.txt field, when I select the file in Diadem.

Is this possible?

Thank you for your time

Hi again,

I solve the problem myself.

FileNameProtocol = filedlgfile
filenametxt = "D:\BOF-MIU\Scripts\Protocol files\" & filenameprotocol & ".txt".

FNO = textfileopen (filenametxt, tfread)

I forgot to bitch a few symbols: ' and------. "

I told you I'm new with VBS and I have some problems with the basic stuff: how to include a variable, a function and I forgot some time to put all the signs of the script.

Thank you for your time.

Tags: NI Software

Similar Questions

Maybe you are looking for