Directory!!

Post specialized setup scripts you have created here.
alfrqan
Posts: 23
Joined: Tue Sep 06, 2011 10:51 pm

Directory!!

Postby alfrqan » Fri Aug 16, 2013 7:59 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Directory!!

Postby FrancescoT » Fri Aug 16, 2013 12:03 pm

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
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

alfrqan
Posts: 23
Joined: Tue Sep 06, 2011 10:51 pm

Re: Directory!!

Postby alfrqan » Fri Aug 16, 2013 2:10 pm

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?

alfrqan
Posts: 23
Joined: Tue Sep 06, 2011 10:51 pm

Re: Directory!!

Postby alfrqan » Fri Aug 16, 2013 5:58 pm

well thAnks everything works

thnxxxxxxx


Return to “Sample Scripts”

Who is online

Users browsing this forum: No registered users and 8 guests