hey
I am trying to take the drive: from any directory..I dont know how to do that
such taking out drive "c:" in this example and storing it in a variable and storing the remaining of the directory in other variable such "/xx/xx/xx/xx/../.."
c:/xx/xx/xx/xx/../..
or taking out drive "d:" ,storing it in a variable and remaining of the directory should be stored in other variable
I dont know how to do that
please let me know if u have any way
Directory!!
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Directory!!
Dear User,
you could use "Parse String" command to "Split the string" at the first occurrence of the "/" pattern ... then store the result in a custom variable.
Hope this helps you.
Regrads
you could use "Parse String" command to "Split the string" at the first occurrence of the "/" pattern ... then store the result in a custom variable.
Hope this helps you.
Regrads
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Directory!!
wow thanks haaaaaard ,it works
But what about if i want to do reverse way?
like combining 2 variables to represent the string i want
variable 1: "c:" -->AOCDrive
variable 2:"/xx/xx/.." -->AOCDIR
combining the 2 strings i get "c:/xx/xx/../"
this is not working--> $AOCDrive$$AOCDIR$ using set variable into TARGETDIRAOC
what do u think i have to do?to solve it?
But what about if i want to do reverse way?
like combining 2 variables to represent the string i want
variable 1: "c:" -->AOCDrive
variable 2:"/xx/xx/.." -->AOCDIR
combining the 2 strings i get "c:/xx/xx/../"
this is not working--> $AOCDrive$$AOCDIR$ using set variable into TARGETDIRAOC
what do u think i have to do?to solve it?
Re: Directory!!
well thAnks everything works
thnxxxxxxx
thnxxxxxxx
Who is online
Users browsing this forum: No registered users and 8 guests