VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Move a file using MoveFile API

by Karthikeyan (187 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 15th December 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Move a file using MoveFile API

Rate Move a file using MoveFile API



Dim retval As Long  ' return value
retval = MoveFile("D:\showagent.txt", "D:\showagent1.txt")
If retval = 0 Then
MsgBox "File not found"
Else
MsgBox "File Move successful"
End If
End
End Sub

Download this snippet    Add to My Saved Code

Move a file using MoveFile API Comments

No comments have been posted about Move a file using MoveFile API. Why not be the first to post a comment about Move a file using MoveFile API.

Post your comment

Subject:
Message:
0/1000 characters