Macro Toolworks and Perfect Keyboard Forums • Need little help in macro
Page 1 of 1

Need little help in macro

Posted: Mon Oct 23, 2017 10:56 am
by Svarainis

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:

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

Re: Need little help in macro

Posted: Thu Dec 07, 2017 3:12 pm
by jfusco
Try it this way instead

Code: Select all

Or just this,

Code: Select all

Remember, you have to put your variable name between the % symbols.