DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Command Line move  (Read 7,053 times)

logic7

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 20
IDEA: Command Line move
« on: September 25, 2006, 12:53 PM »
I would like to see a command line move that works as mv in Linux/UNIX does.

The built in one in Windosws cannot move folders and only renames them under the same parent folder, and the UNIX ports so far are either buggy (one of the adds endless loops of the folders moved at the destination) or don't support UNC paths.

Again this is a time saver in batch files instead of capturing the folder name, copying the tree and then deleting it.

Thank you.
« Last Edit: September 25, 2006, 07:25 PM by brotherS »

tmpusr

  • Instantiation stuck in meatspace with no backup
  • Member
  • Joined in 2005
  • **
  • Posts: 154
Re: IDEA: Command Line move
« Reply #1 on: October 08, 2006, 03:29 PM »

logic7

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 20
Re: IDEA: Command Line move
« Reply #2 on: October 08, 2006, 11:28 PM »
http://www.xxcopy.com/index.htm

I've used in the past, too much to deal with and inefficient if not useless when it comes to handling folders.

For example this is what you need to do to move.
xxcopy \src\ \dst\ /rsy/pd0/s/h/r/q1
or
xxcopy \src\ \dst\ /rmdir/y/q1

While in Linux/UNIX

mv /src/  /dst

Thanks for responding.

tonsofpcs

  • Video Tech
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 30
Re: IDEA: Command Line move
« Reply #3 on: November 24, 2006, 09:05 PM »
Assuming that the code you posted is what you need to type, just make this batch file (type it in a text editor, save it as "mv.bat" and put it in your system path):
Code
xxcopy %1 %2 /rsy/pd0/s/h/r/q1
Eric "tonsofpcs" Adler
http://www.videoproductionsupport.com/

tinjaw

  • I'm so glad breakbeat techno isn't an illegal drug
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Military Service Badge - US Army
    • Linux User
Re: IDEA: Command Line move
« Reply #4 on: November 25, 2006, 01:24 AM »
How about using Cygwin? Then you would get mv an a bunch more!

Original address: https://www.donationcoder.com/forum/index.php?topic=5450.0