SoFunction
Updated on 2025-03-07

Select excel type file and use the Dos command to copy the file in batches


OpenFileDialog fileDialog = new OpenFileDialog();
// = "d:\\";
= "Select File";
// = "xml files (*.xml)|*.xml";
= "Excel file|*.xls|all files|*.*";
= 1;
= true;
if (() == )
{
String fileName = ;
// Use file name
}
else
{
// Operation when no file is selected
}