Results 1 to 1 of 1
Thread: Name Statement (Word 2000+)
2008-05-22, 16:50 #1
- Join Date
- Feb 2001
- Yilgarn region of Toronto, Ontario
- Thanked 0 Times in 0 Posts
Name Statement (Word 2000+)
<P ID="edit" class=small>(Edited by chrisgreaves on 22-May-08 09:50. Added Log.006 to LAN drive)</P>This morning I was reading Norm Patriquin's "Patri-Soft Utilities" manual. He wrote that " ... PMOVE automatically determines if the file must be moved, or just renamed"
I am in the business of moving files across local drives etc.
I decided to check it all out.
Back in 2001 I'd discovered an interesting property of the Name Statement. <post#=97,276>post 97,276</post#>. I'd forgotten about that.
Today I wrote and ran this simple test:
'' Assumes C:TEMPLog.dat folder and file exist
Name "C:tempLog.dat" As "c:templog.001" ' simple rename in place
Name "c:templog.001" As "c:tempsublog.002" ' rename and move to different folder on same drive
'' Assumes Z: exists (a RAM drive FWIW)
Name "c:tempsublog.002" As "z:log.003" ' move to different (RAM) drive.
Name "z:log.003" As "z:sublog.004" ' rename and move to different folder on same drive
'' Assumes a memory key F: is installed
Name "z:sublog.004" As "F:Log.005" ' move to different (KEY) drive.
'' Assumes a shared drive on a LAN computer
Name "F:Log.005" As "Bbbbbb80Log.006"
My current thinking is that rather than effect a Move by a Copy/Kill technique, I'm better off
(a) trying the Name Statement and then if that hasn't transferred the file
( using the old Copy/Kill technique.