We have a customer that will be sending us orders in a CSV format. I found an example in another post, but the files were staticly named: DMT Multiple Loads at One Time
In the example it would specify a specific file name. Would the import process work with the get-childitem command to import multiple files. Each time this customer sends us files, they are named differently. #DMT Automation Example 1
#Load Data
Start-Process -Wait -FilePath $DMTPath -ArgumentList “-User $User -Pass $Pass -add -Import "Sales Order Combined” -Source $Source "
If it will not work this way. is there a way to just grab one file at a time and process it, then move the file to an archive folder and process the next one until no files are left?
I found that it would grab the first csv file when using the Get-ChildItem command. but it would not process the next one. Is there a way to have this process loop to where after it process the item, it then moves the file to another folder and then runs again until there is no more files left?