rename a file in visual basic
Posted on 2005-03-02
dear sir ,
how can i rename a file in vb6 but with minor changes
i have this code , i renamed the file in it , but there are some errors
Dim izqupdate As String
Private Sub Form_Load()
izqupdate = "c:\abc.izq"
Name izqupdate As izqupdate + ".exe"
in this way the file will be renamed to abc.izq.exe ,
i want it to be renamed to abc.exe
i was thinking in this way
name izqupdate as izqupdate - ".izq" + ".exe"
but it didnt work ,