Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: FileMenu
I'm not able to use a variable as a menu item declaration. My plan was to "copy" the names of all available logs (using FileItemize) to some variables, and then use those variables as menu item declarations. But all I get is the hardcoded "%variablename%" in the menu - not the contents of the variable.
Do I have to accept that, or is there a way around?
Basically I want to use menu files to launch executables, and want to specify the path for the exe files in filemenu.ini so that all my menu files don't need to know what the path is.
[MyPathStuff] mypath=c:\this\that\other
mypath=InireadPvt("mypathstuff","mypath","",inifilesomeplace below where the inifile variable is defined and above the first menu item
Run("%mypath%\abc.exe","")in the relevent filemenu code.
Article ID: W13016
Filename: FileMenu and Variables.txt
File Created: 1999:04:15:16:51:12
Last Updated: 1999:04:15:16:51:12