[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: file related functions
Take a look at the SQR Command Reference help file, under the function
"Let". It gives examples for file-related functions such as rename. You'll
find that the construct in their example is
Example: let #fstatus = rename($old_filename, $new_filename)
The function "rename" actually renames the file and the return variable
#fstatus (in the example) contains a value indicating whether or not the
call was successful. I have used this in many SQR programs and it seems to
work great.
Hope this is helpful,
Chris
-----Original Message-----
From: Heather C. Shuler <hcshuler@SUMMON3.SYR.EDU>
To: Multiple recipients of list SQR-USERS <SQR-USERS@list.iex.net>
Date: September 10, 1998 8:52 AM
Subject: file related functions
Hello! I want to use the file related functions -- delete, exists,
rename -- to manipulate files. However, the sqr reference that I have
does not give any examples on how to use these. I have tried:
rename ($filename,$fileback)
rename ($filename to $fileback)
rename ($filename as $fileback)
rename $filename to $fileback
rename $filename as $fileback
rename (file,$filename,$fileback) etc. etc.
If someone could enlighten me on the exact nomenclature of these
expressions, I would appreciate it.
--
Heather C. Shuler
Computer Consultant
Human Resources Department
Syracuse University
(315) 443-3941
hcshuler@syr.edu