So I created this exe which will take some information as command line parameter and writes the file name to iostream. This information can be now read using the script and be used.
Example for Open File
Example for Save File
You can download the example scripts here. I have also published a post about another script which uses this technique.
PnP device information for the FTDI chip in my development board
Same name string is also showed as the name of the device if we open the windows device manager.
The script I have listed below will use the Name string to find the com port and then uses it.
Click here to download a copy of the script with avrdude and other support files.