Thank you. I did not consider this and I like the fact that I do not
have to interpret the command string at every call. That is basically
why I was looking for some API that will move a file, without changing
the attributes.



Chris Bipes
Director of Information Services
CrossCheck, Inc.


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Thursday, November 12, 2009 1:57 PM
To: Midrange Systems Technical Discussion
Subject: Re: opendir() - THE ANSWER

Hi Chris,

Ok I am just going with using the system API and the MOV command. It
works.

I would give some thought to using the CL program approach instead of
the system() API. There are a few reasons why:

a) Special characters in the path names... In particular, if you have
any single quotes in the pathnames, they have to be doubled-up with the
system() approach. With a CL program, you wouldn't have to.

b) Performance. With a CL program, part of the interpretation of the
command string is done at compile-time. With system() you're doing it
at run-time.

These considerations may not be an issue in your shop, I don't know. I
just wanted to be sure that you had thought about them.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.