Need little help in macro

Share your macros, knowledge, solutions, services, ...
Post Reply
Svarainis
Posts: 1
Joined: Mon Oct 23, 2017 10:42 am

Need little help in macro

Post by Svarainis » Mon Oct 23, 2017 10:56 am

Hello,

I'm trying to build some macro program and here is what i need:
"Directory" variable is folder "Channel"
I have VARIABLE "Directory" saved to file. Then i want to load it:
<var_load>("Directory","C:\wwww\variable10.dat","p3")

But how to specify this line: <if_dir>("C:\ ********I need DIRECTORY VARIABLE here*** \Base","EXIST","")
In this example i need this line like this: <if_dir>("C:\Channel\Base","EXIST","") Every time folder "Channel" is different, so i can't simply put this line.

I'm tried this line, but it not works: <if_dir>("C:\%_vQuoteChar%Directory%_vQuoteChar%\Base","EXIST","")<#>

Thanks for help ;)

jfusco
Posts: 5
Joined: Tue Apr 11, 2017 3:49 pm

Re: Need little help in macro

Post by jfusco » Thu Dec 07, 2017 3:12 pm

Try it this way instead

Code: Select all

<if_dir>("%_vQuoteChar%C:\%Directory%\Base%_vQuoteChar%","EXIST","")
Or just this,

Code: Select all

<if_dir>("C:\%Directory%\Base","EXIST","")
Remember, you have to put your variable name between the % symbols.

Post Reply