|
Not sure if this exists in QShell or not, but there are parameters that canbe
used with the cp command (Unix) that should do what you want.directory
Specifically, cp -r -p /PARENT/* /STEPPARENT
The '-r' does a recursive copy. The '-p' preserves original file access
information.
Does this exist in QShell?
John McKee
Quoting Shannon ODonnell <sodonnell@xxxxxxxxxxxxxxxxxxxxxxxxx>:
Hi,directory structure
I have a parent directory in the IFS that has several hundred
sub-directories below it. I want to copy all the sub-directories to a
different parent directory.
For example, let's say the original parent dir is: /PARENT and the new
target parent directory is named /STEPPARENT
I want all the sub directories, and the files within them, to reside in
/STEPPARENT so that /STEPPARENT will have the exact same
and contents as /PARENT.
I can write a program to recurse through /PARENT and recreate the
wantstructure and files in /STEPPARENT (in fact, I did that first), but I
doto know if there is a QSH command that will allow me to do it all in a
single CPY. My RPG program that does this takes a really long time to
Copythe recursion and the recreation of the files so I'm hoping a QSHELL
tocommand would work faster.in /PARENT
If this was WINDOWS, I could go into Explorer and copy the files
and paste them to /STEPPARENT and I'd be done. I know I can map a drive
todo the same from the IFS, but my connection to this system is somewhat
spotty and I can't trust that the connection would stay up long enough
listfinish copying all the files if I was to try it via a mapped drive.do this for
So.I was hoping I could just submit a QSHELL command to batch to
me.
Thanks,
Shannon O'Donnell
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.