[Gambas-user] Move ... Kill function (File & Directory Functions)
Hans Lehmann
hans at gambas-buch.de
Sun Sep 23 18:04:51 CEST 2018
Am 23.09.2018 um 16:48 schrieb Fabien Bodard:
> Public Sub btnMoveKill_Click()
> Dim sSourcePath, sDestinationPath, sFilename As String
>
> sSourcePath = User.Home &/ "DW"
> sDestinationPath = User.Home &/ "GB3BUCH"
> sFileName = "dokuwiki_syntax.txt"
>
> ' Check whether the file to be moved exists.
> Move sSourcePath &/ sFileName Kill sDestinationPath &/ sFileName
> Message.Info("File '" & sFileName & "' successfully moved!")
> Catch
> Message.Error(Error.Text)
> End
>
>
> i think the second way can do the job too but i've not tested it yet
Hello Fabien,
the shortened variant also works well.Thanks!
Greetings
Hans
More information about the User
mailing list