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,482 of 2,978   
   Rick Davey to bjjlyates@bellsouth.net   
   Re: Moving/relocating a file   
   06 Jul 07 11:47:31   
   
   From: rdavey@bluemountain.ca   
      
   Thanks for the quick reply.   
   I guess I should have been more specific.  I remember doing this before, but   
   haven't written in Pascal for years.   
      
   You are correct - it was a call that was made in the program to an external   
   function -possibly within the DOS unit?.   
   I remember using that so that I did not have to do any type of a 'cleanup'   
   after running the compiled program.  It was all contained within the   
   executable.   
      
   "winston19842005"  wrote in message   
   news:C2B3D3D9.2CD9%bjjlyates@bellsouth.net...   
   >   
   >   
   >   
   > On 7/6/07 10:39 AM, in article f6lk6i$9bu$1@aioe.org, "Rick Davey"   
   >  wrote:   
   >   
   >> What's the Pascal code to move a file?  I need to move it to another   
   >> drive   
   >> (possibly a UNC path).   
   >   
   > This isn't really a programming language question, more of an   
   > environment/OS   
   > question. Languages usually don't contain OS-type functions, only a way to   
   > call the OS-related function.   
   >   
   > Except in the very VERY early days in the days of computers without REAL   
   > OS   
   > interfaces, in which case the code is:   
   >   
   > Open input file   
   > Open output file   
   > Repeat until EOF(input)   
   > Read record from input file   
   > Write record to output file   
   > Close output file   
   > Close input file   
   > If moving file, delete input file   
   >   
      
   --- 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