How do I return a directory?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do I return a directory?
Good Morning,
How do I return a directory?
Ex: my ProjectSuite is in: X: \ GRV \ CPS5 \ Projects \ TestComplete \ Registrations \
I would like to get the string: X: \ GRV \ CPS5 \ Projects \ TestComplete \
Thank you
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Project.Path will return project path
ProjectSuite.Path will return project suite path
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sim, mas preciso retornar um diretório antes do ProjectSuite
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't think you will get that path by default, need to do some scripting do the same.
Please type here English otherwise we need to understand like below 🙂
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which scripting language are you using? A sample vbscript snippet is provided below. Which might be of some help
Sub GetParentFolder
suitePath = projectsuite.Path
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFldr = objFSO.GetFolder(suitePath)
MsgBox objFldr
strFolder = objFSO.GetParentFolderName(objFldr)
MsgBox strFolder
End Sub
