home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,484 of 2,978   
   Rick Davey to Rick Davey   
   Re: Moving/relocating a file   
   06 Jul 07 12:41:32   
   
   From: rdavey@bluemountain.ca   
      
   OK Got it.   
      
        ExecString := '/c copy C:\Path\Filename.txt   
   \\Server\Path\NewFilename.txt';   
        SwapVectors;   
        Exec(GetEnv('COMSPEC'),ExecString);   
        SwapVectors;   
      
   I am using variables in place of the paths and filenames in the ExecString,   
   and find that if either includes spaces, you must enclose in a double quote.   
      
   Thanks all.   
      
   "Rick Davey"  wrote in message   
   news:f6lk6i$9bu$1@aioe.org...   
   > What's the Pascal code to move a file?  I need to move it to another drive   
   > (possibly a UNC path).   
   > Thanks in advance!   
   >   
      
   --- 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