Copy file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Pragati
Posts: 1
Joined: 25 Aug 2016 23:02

Copy file

#1 Post by Pragati » 25 Aug 2016 23:09

Can someone help me copy a file from an unknown location to a known location.

I want to copy a file wzmul file from a folder in c drive to a folder Program data in c drive.

I am using the code below, but that is not searching wzmul I guess.

Please help;

COPY "*.wzmul" "C:\ProgramData\Winzip"

Also this:

if not exist "C:\ProgramData\WinZip" md "C:\ProgramData\WinZip"

COPY "%~dp0WinZip.wzmul" "C:\ProgramData\WinZip\"

This is not working.

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Copy file

#2 Post by ShadowThief » 26 Aug 2016 12:27

Are you in the directory that contains the .wzmul files? Your current code will copy all of the .wzmul files in the current directory to the C:\ProgramData\Winzip directory.

Post Reply