SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, 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.

The Southern California OS/2 User Group
USA

SCOUG-Programming Mailing List Archives

Return to [ 09 | April | 2005 ]

>> Next Message >>


Date: Sat, 9 Apr 2005 13:39:36 PDT7
From: ggranat@earthlink.net
Reply-To: scoug-programming@scoug.com
To: scoug-programming@scoug.com
Subject: SCOUG-Programming: Rexx file rename ?

In <6131-57540@sneakemail.com>, on 04/08/2005
at 11:42 PM, "Bob" 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.