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,544 of 9,834    |
|    Anders to All    |
|    Re: Trouble running BAT file from P9...?    |
|    18 Dec 08 09:36:31    |
   
   From: anders@jREMOVEjonssondata.se   
      
   > The batch file runs properly if I cut and paste everything   
   > between the quotes into a run command.   
   >   
   > What's causing the failure?   
   >   
      
      
   I sometimes run into similar problems. A bat file that "should" execute does   
   not.   
      
   I have found that calling it in the following manner works.   
      
   Here is an example:   
      
   Execute("cmd /c start "+GetAliasPath(":WORK:")+"\\mybat.bat",No,   
   ExeShowNormal)   
      
   That is to start a bat file in the working dir, you can ofcourse adjust this   
   to:   
      
   Execute("cmd /c start "C:\\Folder\\mybat.bat",No, ExeShowNormal)   
      
   If you want to hardcode to run a bat-file located on the computer or:   
      
   Execute("cmd /c start "\\\\ComputerName\\Folder\\mybat.bat",No,   
   ExeShowNormal)   
      
   If you want to run a bat file that is located on another computer.   
      
      
   Best regards   
      
   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