said:
>** Reply to message from "Peter Skye pskye@peterskye.com" on Fri, 8 Apr 2005
>16:07:54 PDT7
>> Is there a Rexx function to rename a file? (I can't find one.)
>>
>> I know I can say
>>
>> "ren fileX fileY"
>>
>> but I'd prefer a Rexx function if one exists.
>REXXLIB
>DOSRENAME( file_name_1, file_name_2 )
>Returns 1 if file_name_1, which must contain a fully qualified file or
>directory name, is successfully renamed to the new name in file_name_2;
>otherwise, returns 0.
Absolutely correct. Guess that is what I get for trying to read
documentation that late at night. Peter, it looks like the DOSRENAME
function should do what you need to have done.
FWIW, this is the way the function is documented:
===============================================
DOSRENAME(filename1,filename2)
Summary: DOSRENAME renames a file or directory.
Arguments: filename1: The name of the file or directory to rename.
filename2: The new name of the file or directory.
Returns: 1 if the operation was successful, otherwise 0.
Notes: The names should contain any necessary drive and path
information, but should not contain wildcard characters.
DOSRENAME allows a file to be "moved" from one directory to
another on the same drive.
===============================================
-- gary
-----------------------------------------------------------
Gary Granat
ggranat@earthlink.net
-----------------------------------------------------------
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".
For problems, contact the list owner at
"postmaster@scoug.com".
=====================================================
>> Next Message >>
Return to [ 09 |
April |
2005 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.