Forum Discussion

rodm0001's avatar
rodm0001
New Contributor
3 years ago

multifile select

browser.dlgOpen.OpenFile("C:\\TestFiles\\my.zip", "Custom Files (*.json;*.doc;*.docx;*.xml;*.csv;*.mdxml;*.xlsx;*.docx;*.mdzip;*.zip;*.txt)");

 

 

does anyone know to open(select) more than 1 file?

 

for example - I want to select my.zip and my2.zip

  • Using your example code, does this not work?

     

     

    browser.dlgOpen.OpenFile("\"C:\\TestFiles\\my.zip\" \"C:\\TestFiles\\my2.zip\"", "Custom Files (*.json;*.doc;*.docx;*.xml;*.csv;*.mdxml;*.xlsx;*.docx;*.mdzip;*.zip;*.txt)");

     

     

    Does your browser allow multiple file selection?

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    You can select multiple files like so,

    app.Window("#32770", "Open").OpenFile("\"C:\\Temp\\output.txt\" \"C:\\Temp\\Data.txt\" \"C:\\Temp\\ExportLog_JS.txt\"", "All types (*.*)");
    • rodm0001's avatar
      rodm0001
      New Contributor
      I am using a browser not a windows app
  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Using your example code, does this not work?

     

     

    browser.dlgOpen.OpenFile("\"C:\\TestFiles\\my.zip\" \"C:\\TestFiles\\my2.zip\"", "Custom Files (*.json;*.doc;*.docx;*.xml;*.csv;*.mdxml;*.xlsx;*.docx;*.mdzip;*.zip;*.txt)");

     

     

    Does your browser allow multiple file selection?

  • You can write a loop that contains the OpenFile and read the file names from a .csv file. That will work for one or many file names.