I'm using a Winautomation robot to execute some task, and I need to get the path of the folder path of the previous folder. I can easyly have the current folder of execution of my robot.
To illustrate what I want :
In my variable, I have the current directory :
X:\\Memento\\InventairesDistrib\\VerificationsInventairesDistributeurs
I want a regex to get the previous directory, so :
X:\\Memento\\InventairesDistrib\\
Note that I could hardcode this directory in my robot, but I would like to have a more robust program, who will work even if I move my robot and folder hierarchy somewhere else.
Thank you !
OK I did find how to do this within Winautomation scripting langage, no need of regex finally.
Have a nice day !
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.