BATCH FILE CODE CUT NOT COPY

User avatar
Michael Abrams
4StarLounger
Posts: 573
Joined: 10 Feb 2010, 17:32

BATCH FILE CODE CUT NOT COPY

Post by Michael Abrams »

Sorry if i should know this.

I want to change this batch file to "cut" instead of "copy"

copy /y C:\Users\AbramsM\Downloads\etc........

Thank you very much.

Michael

User avatar
John Gray
PlatinumLounger
Posts: 5401
Joined: 24 Jan 2010, 08:33
Location: A cathedral city in England

Re: BATCH FILE CODE CUT NOT COPY

Post by John Gray »

You shouldn't know it, because CUT is not a command.
Do you mean MOVE?

Alternatively, what are you trying to do?
Last edited by John Gray on 23 Jan 2019, 20:22, edited 1 time in total.
John Gray

Venison is quiet deer, and quite dear.

User avatar
HansV
Administrator
Posts: 78235
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: BATCH FILE CODE CUT NOT COPY

Post by HansV »

Use the move command instead of the copy command.
Best wishes,
Hans

User avatar
Michael Abrams
4StarLounger
Posts: 573
Joined: 10 Feb 2010, 17:32

Re: BATCH FILE CODE CUT NOT COPY

Post by Michael Abrams »

Of course - just fine - thank you both !

User avatar
Michael Abrams
4StarLounger
Posts: 573
Joined: 10 Feb 2010, 17:32

Re: BATCH FILE CODE CUT NOT COPY

Post by Michael Abrams »

DISREGARD BELOW
As usual, user(me) error. It works perfectly.


move /y C:\Users\AbramsM\Downloads\etc........

didn't work - sorry about that - do I need to change the /y?

I am moving a file from C:\Users\AbramsM\Downloads to another location

User avatar
DaveA
GoldLounger
Posts: 2599
Joined: 24 Jan 2010, 15:26
Location: Olympia, WA

Re: BATCH FILE CODE CUT NOT COPY

Post by DaveA »

Remember that any "Move" or "Cut" can be very dangerous.
I always use copy and the delete when I know the file(s) have been copied.
I am so far behind, I think I am First :evilgrin:
Genealogy....confusing the dead and annoying the living

User avatar
Michael Abrams
4StarLounger
Posts: 573
Joined: 10 Feb 2010, 17:32

Re: BATCH FILE CODE CUT NOT COPY

Post by Michael Abrams »

Good advice DaveA - in this particular case, I am actually moving a copy of the files. The originals are on another server.

But if I am moving live files, I will need to use copy/delete.

This place is fantastic !

Michael