Tip: use name function instead of cmd shell move
#1
It's not so obvious, but it's night/day difference using "name" function instead of cmd shelling out to "Move" a file.  My main use of using the "name" function is to rename files inside of a directory.  And so for a majority of others too.

Things to remember be in one of the two directories. "CHDir"  use the "..\name-of-file" to move to present or other directory (reversible command).  ie: name "..\name-of-file" as "name-of-file".  example moves other file in directory to present chdir.  It's possible to rename the destination file to something else like: "new-name-of-file"  Twice the work for a single function.

PS.
It really is night n day difference.

Thought i would share.  B4 you comment.  Using name function to move is a benefit only to people who read deeply in the help records.
Reply


Messages In This Thread
Tip: use name function instead of cmd shell move - by doppler - 04-03-2023, 10:16 PM



Users browsing this thread: 1 Guest(s)