I want to copy all files of a said type on my external hard drive
My code is this, what I'm trying to accomplish is to make a list of all pdf documents in my computer and then copy all of those documents to my external hard drive in a directory
When i compile the code and test it, it creates the "allpdf" directory and creates the "FileLocations.txt" file with all the files that contain "pdf" in their names or extensions, but the last part of my code seems to be unable to work and all I get is a "bad path" perhas there's a mistake somewhere? thanks in advance
Last edited by Don Cragun; 09-21-2014 at 07:49 PM..
Reason: Add CODE tags.
I have two drives (scsi) mounted on one server and I need to copy certain files and directories from one drive to the other. Any suggestions :confused: (4 Replies)
i have a Simple Tech hard drive that i use between two computers. it is formatted to ntfs. i have a dell desktop with Ubuntu 7.10 and Ubuntu 8.04 and Windows XP Home. and i have a laptop with Ubuntu 7.10 and Ubuntu 8.04. the laptop recognizes the hard drive on both 8.04 and 7.10 but my desktop... (9 Replies)
Can anyone please walk me through how to mount an external parallel (or scsi) hard drive in visualize C3000 machine? I also would like to mount "/var/sallie" directory in that external drive. My "/var/sallie" directory is running out of space so I would like to mount an external hard drive so that... (0 Replies)
Hi Folks,
First a little background, I am working on a ship that operates in the Indian Ocean and Persian/Arabian gulf area. We had a Sunblade 2000 that finally died. The Video board burned up and I guess damaged the mother board. So we ordered 2 rebuilt 2000s one as a spare. Due to mounting... (1 Reply)
Hi Guys..
I want to install Linux on my portable hard drive.
I created a 20GB partition in my hard drive for linux, Now I want to make it bootable mean when I connect it to system n start the system it will start the LINUX and when start without usb-hard drive it should start the windows.
... (3 Replies)
Hi,
I`m trying to copy an entire directory(with numerous files, folders and subfolders etc, a content size of 500gigs) from a linux machine running Red Hat Enterprise Linux 6 to an external hard drive on my windows.
I downloaded and installed psftp on my windows and I can login using psftp... (9 Replies)
I have connected an external hard drive. I can't find it.
Both ls /media, fdisk -l and ls /dev show nothing.
TIA (3 Replies)
Discussion started by: Meow613
3 Replies
LEARN ABOUT BSD
mcopy
MCOPY(1) General Commands Manual MCOPY(1)NAME
mcopy - copy MSDOS files to/from Unix
SYNOPSIS
mcopy [ -tnvm ] sourcefile targetfile
mcopy [ -tnvm ] sourcefile [ sourcefiles... ] targetdirectory
DESCRIPTION
Mcopy copies the specified file to the named file, or copies multiple files to the named directory. The source and target can be either
MSDOS or Unix files.
The use of a drive letter designation on the MSDOS files, 'a:' for example, determines the direction of the transfer. A missing drive des-
ignation implies a Unix file whose path starts in the current directory
Mcopy will allow the following command line options:
t Text file transfer. Mcopy will translate incoming carriage return/line feeds to line feeds.
n No warning. Mcopy will not warn the user when overwriting an existing file.
v Verbose mode.
m Preserve the file modification time.
If the target file already exists, and the -n option is not in effect, mcopy asks whether or not to overwrite the file.
MSDOS subdirectory names are supported with either the '/' or '' separator. The use of the '' separator or wildcards will require the
names to be enclosed in quotes to protect them from the shell.
The mcd command may be used to establish the device and the current working directory (relative to MSDOS), otherwise the default is A:/.
SEE ALSO mcd(1), mread(1), mwrite(1)BUGS
Unlike MSDOS, the destination directory may not be omitted.
The '+' operator (append) from MSDOS is not supported.
No other Mtools command requires the use of a drive letter designation on MSDOS files.
local MCOPY(1)