Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.paradox    |    To crash or not to crash, asks Borland    |    9,834 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,561 of 9,834    |
|    Anders to All    |
|    Re: Trouble running BAT file from P9...?    |
|    22 Dec 08 13:26:21    |
   
   From: anders@jREMOVEjonssondata.se   
      
   > Warning: after START, the name/title of the windows (optional) is between   
   > " " ; to avoid any ambiguity, add \"\"   
      
   OK, but I never specify any title for the windows and never had any problem   
   but maybe there could be a situation?   
      
   Wait - now I see, if I DO add "" as per your warning 3 - then I MUST add the   
   title as well.   
      
      
   > Warning_2: GetAliasPath can return single \ ; do not forget to double   
   > them.   
      
   That I don't get? I think that it will _always_ return single backslashes   
   and that is also what I need when I run the start command. Or?   
      
      
   > Warning_3: GetAliasPath can return path with spaces ; do not forget to   
   > add " (begin + end)   
      
   Good point. As all my Paradox stuff is using good old DOS-standard for all   
   paths involved I never considered it.   
      
   This should work then even with paths with spaces.   
      
   Execute("cmd /c start \"\" \""+GetAliasPath(":WORK:")+"\\mybat.bat\"" , No,   
   ExeShowNormal)   
      
   Anders   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca