× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I just tried this command and it copies the contents of one directory to 
another.

The destination directory must pre-exist before the copy command or the copy 
will fail...

COPY OBJ('/OriginFolder/*.*') TODIR('/DestinationFolder') 


Jeffrey Flaker
Senior Programmer/Analyst
Linens 'N Things
6 Brighton Rd
Clifton, NJ  07015
Phone:   973-249-4384
Fax:     973-249-4901
http://www.lnt.com


-----Original Message-----
From: Peter Vidal [mailto:Peter_Vidal@xxxxxxxx]
Sent: Wednesday, September 10, 2003 10:59 AM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Copying files from one folder to another (from the
iSeries)


Hi list:

This is new to me and after surfing a little on the archives, I decided to
submit the inquietude to the group.

This is a simple task.  We want to copy all files located in a folder to another
folder.  I want to be able replace the file if it does exist and leave everybody
else intact.

My files are in a folder in the IFS called PGMTST and the production folder is
PROGRAMS.  They are in the same level:

Files to be copied  : \\Fl400\INTRANET\APP\PGMTST
Production folder   : \\Fl400\INTRANET\APP\PROGRAMS

Is command CPY the one to use here?  How will be the command and parameters to
use to accomplish this?

Thanks in advance,
Peter Vidal
Pall Aeropower Corp.
SR Programmer Analyst
WWW.Pall.com

"A good player makes himself look good; a great player makes the team look
good."
Author unknown


_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.