Hi there! Pardon me if I sound like I am spewing gibberish as I am still planning on how to go about creating this process.
So basically, I have about 100 powerpoint files that have the exact same format but with different details, and i need to carry out the exact same activities to all 100 of them. My current solution is to record a desktop recording in file explorer to open all of the powerpoint files, and manually add the processes to each powerpoint application window snap, but that would be inefficient and not dynamic as the number of powerpoint files that I have may increase/decrease over time.
I tried using Directory.GetFiles() but I’ve had no luck so far. I could only get the file names and was not able to get any of the files to open in Open Application. Hence, I am wondering if it is possible to make this entire process dynamic (works even if the number of powerpoint files increase/decrease) instead of it being static (fixed to work only on that specific 100 powerpoint files).
So sorry for any inconvenience and thank you for your time.
Hi @Dan_Y
As you know, open application needs full path but I think you have directory and file name in there, so why don’t you create full path to open those file?
Like,
For each fileName
String full path = concatenate directory & fileName
Thank you for your reply. I am aware that open application requires file name, selector and arguments. However, I have difficulties with getting the selector for the open application scope, and my best guess would be that it is dynamic as the file name changes, thus I am not sure as to how i should go about the selector of my open application scope in the for loop.
Would it be possible for me to make the selector of the open application scope dynamic?
So sorry for any inconvenience and thank you so much for your help.
Thanks for your article reference. I managed to solve the issue of the file and folder name being spliced up. However, I still cannot open the file.
This is the error:
I also realised that from the directory, UiPath goes through my project folder before going to \New_folder\Hello_this_me.pptx when it should directly go through
Is it possible that i made some mistake in my process, thus causing this to happen?
So sorry for any inconvenience caused and thank you.
I noticed that as well, so I placed the folder inside C: directly, thus with the updated directory being C:\testing_only for_data_scraping\New_folder . However, the issue still persists. I will try to see if I can invoke powershell to start my file, and get back to you.
So sorry for any inconvenience and thank you so much for your help.