View Single Post
Old Jun 16th, 2005, 9:18 PM   #5
L7Sqr
Hobbyist Programmer
 
Join Date: Jun 2005
Location: here
Posts: 124
Rep Power: 0 L7Sqr is an unknown quantity at this point
I tried that for the copy...
   pos = batch.LastDelimiter("\\") + 1;
   len = batch.Length () - pos;
   sub = batch.SubString (pos, len + 1);
   cmd = "copy /Y \"" + batch + "\" " + sub;
   /*
    * double check the syntax
    */
   if (debug) 
      frmMain->memList->Lines->Add (cmd);
   error = system (cmd.c_str());

   /*
    *
    */

With the same result...
[edit]
where cmd is the file ping_test.bat
[/edit]

Last edited by L7Sqr; Jun 16th, 2005 at 9:22 PM.
L7Sqr is online now   Reply With Quote