@Gilles-Girard said in Add double quotes @ start and en of line + text in midle +more:
After many hours searching I now have a basic understanding (limited to autohotkey experience).
Seeking help to put the pieces together.
1- need to add double quotes to the start and end of each lines
2- I need to make this a single line with additional text after the first line (or [Source.Name] =)
The following list :
Request 1.xls
request 2.xls
request 3.xls
would become
“Request 1.xls” or [Source.Name] = “request 2.xls” or [Source.Name] = “request 3.xls”
Screenshot 2023-05-06 203733.png
This script first initializes a variable fileList with the names of the files. It then loops through the list and adds double quotes to the start and end of each file name using the Chr() function to insert the ASCII code for a double quote (34).
The script also creates a variable output to store the final output string. The first file name is added to the output variable without the “or [Source.Name] =” prefix, while the rest of the file names are appended to output with the prefix.
Finally, the MsgBox command displays the final output string as a message box.
You can customize the fileList variable to include your own list of files. Just replace the names in the square brackets with your own file names.