Re: Bug? Failure of Macros to Expand
Hello Bill, On Mon, 18 Oct 2004 at 21:48:28 [GMT -0500] (which was 04:48 where I live) you wrote: BMc:\test_bat.cmd %FolderName BM receives %FolderName - not expanded to the actual BM folder name. Is there some trick to get the macro to BM expand? You need to use a 'cmd' template like : ,- [ x:\path\pre_test_bat.cmd ] | @echo off | c:\test_bat.cmd %FolderName `- that will be export to you command file using the [x] Export message to file Action [x:\path\pre_test_bat.cmd ] [x] overwrite it this command file will next be executed throw the [x] Run External Program [x:\path\pre_test_bat.cmd ] -- Regards, Alain :aggy: :flag-france: Les fraises ont un nez et les mres ont des oreilles. - Les nuls The Bat! 3.01.33 Windows 2000 5.0 Build 2195 Service Pack 4 Current beta is 3.0.2.1 Beta/1 | 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html IMPORTANT: To register as a Beta tester, use this link first - http://www.ritlabs.com/en/partners/testers/
Re: Bug? Failure of Macros to Expand
On Thu 21-Oct-04 4:05pm -0400, Alain de Gevigney wrote: On Mon, 18 Oct 2004 at 21:48:28 [GMT -0500] (which was 04:48 where I live) you wrote: BMc:\test_bat.cmd %FolderName You need to use a 'cmd' template like : Thanks, Alain, that's a nice work-a-round to the problem. It works fine. I still think it should work directly with Run External Action - from the comment in that action. -- Best regards, Bill The Bat! 3.0.1.33 Pro - BayesIt! 0.7.3 - XP Pro SP2 - POP3 Current beta is 3.0.2.1 Beta/1 | 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html IMPORTANT: To register as a Beta tester, use this link first - http://www.ritlabs.com/en/partners/testers/
Bug? Failure of Macros to Expand
Hello TB Beta List, Attempting to pass the folder name (or any other macro) to a batch file, the macro is not expanding. For example, a filter with the Execute action and command line: c:\test_bat.cmd %FolderName receives %FolderName - not expanded to the actual folder name. Is there some trick to get the macro to expand? Or is this a bug? -- Best regards, Bill The Bat! 3.0.1.33 Pro - BayesIt! 0.7.3 - XP Pro SP2 - POP3 Current beta is 3.0.2.1 Beta/1 | 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html IMPORTANT: To register as a Beta tester, use this link first - http://www.ritlabs.com/en/partners/testers/