12-04-2012, 11:14 PM
Hi,
Anyone please help me in using relative path. I need to traverse to the super parent folder of test script file and append some other path to the same. Eg: Test script file @ "C:\Tests\Automation\TestScripts\Login\", i need to get "C:\Tests\Automation\Data\Environment.xml".
I am aware that using "..\" we can navigate to the parent folder, but when i put msgbox "..\..\" & Environment("TestDir"), its giving "..\..\C:\Tests\Automation\TestScripts\Login\" instead of "C:\Tests\Automation\". anyone please help.
Thanks
Sams
Anyone please help me in using relative path. I need to traverse to the super parent folder of test script file and append some other path to the same. Eg: Test script file @ "C:\Tests\Automation\TestScripts\Login\", i need to get "C:\Tests\Automation\Data\Environment.xml".
I am aware that using "..\" we can navigate to the parent folder, but when i put msgbox "..\..\" & Environment("TestDir"), its giving "..\..\C:\Tests\Automation\TestScripts\Login\" instead of "C:\Tests\Automation\". anyone please help.
Thanks
Sams