Need idea on setting a directory in the File Explorer
Posted: Wed Jan 12, 2022 2:13 am
Here is a code snippet
This accesses a webpage that is designed to select and have files uploaded it to it. If you access that page, click on the Test Format button at the bottom.
This opens a local explorer window, but it ALWAYS opens on the last local directory that was opened on a previous access.
I want to be able to set the directory to be accessed before accessing the webpage, but I cannot seem to find a way to do so.
Ideas appreciated.
Terry
Code: Select all
URL$ = "https://filencdor.ondemand.sas.com/eNC3Web/"
SetCurrentDirectory("C:\SomeDir\SubDir\")
RP.l = RunProgram(URL$,"", GetCurrentDirectory(), #PB_Program_Open)
If RP
WaitProgram(RP)
CloseProgram(RP)
EndIf
End
This opens a local explorer window, but it ALWAYS opens on the last local directory that was opened on a previous access.
I want to be able to set the directory to be accessed before accessing the webpage, but I cannot seem to find a way to do so.
Ideas appreciated.
Terry