[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re:[sqr-users] Rename Files using call system




If you display your $command_sqr you will understand your mistake
 
why you do not use the native SQR rename function ?
 
rename Renames old_filename to new_filename. The function returns either a zero 
(0) to 
indicate success or the value returned from the operating system to indicate an
error.
Syntax: stat_var = rename(old_filename, new_filename)
■ old_filename = text literal, column, variable, or expression.
■ new_filename = text literal, column, variable, or expression.
■ stat_var = decimal, float, or integer variable.
Example: let #fstatus = rename($old_filename, $new_filename) 



> Message du 29/01/08 22:03
> De : "Pactwa, Marissa" 
> A : sqr-users@sqrug.org
> Copie à : 
> Objet : [sqr-users] Rename Files using call system
>
> Hi All,
> 
> 
> 
> I'm trying to use the call system command to rename a .pdf file. I have
> the following code:
> 
> 
> 
> Let $CommandSystemVariable = getenv('COMSPEC')
> 
> let $command_str = $CommandSystemVariable || ' /c rename c:\b.txt
> c:\a.txt'
> 
> call system using $command_str #status wait
> 
> 
> 
> I keep getting an error status = 1. We have SQR running on windows.
> 
> 
> 
> Any ideas?
> 
> Thanks a lot!
> 
> Marissa
> 
> 
> 
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users
> 
> 

 Créez votre adresse électronique prénom.nom@laposte.net 
 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users