AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
  • Modifying the name of a file
  • Modifying the name of a file (WEBDEV)
Modifying the name of a file
Modifying the name of a file (WEBDEV)
WEBDEV - Código ServidorPHPAjax The following code is used to modify the name of a file.
// Declare the variables
FileToRename is string
RenamedFile is string
ResNameModif is boolean
// Select the file to rename
FileToRename = "C:\MyDirectories\File.txt"
// Select the renamed file
RenamedFile = "C:\MyDirectories\RenamedFile.txt"
// Modify the name of the file
ResNameModif = fRename(FileToRename, RenamedFile)
// Display an error message if the modification was not performed
IF ResNameModif = False THEN
Error(ErrorInfo(errMessage))
ELSE
Info ("The file was renamed")
END
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 22/08/2022

Señalar un error o enviar una sugerencia | Ayuda local