You haven't noticed this library of mine thenthe possibility to rename a file,
Have you tried it? A FileMove operation does not necessarily imply a copy and delete. As I said there is no true rename in .NET (or in the Win32 API that I can find!), even the VisualBasic .NET Rename ends up calling the Windows Win32 MoveFile API function."As there is no real Rename function in .NET this is actually a FileMove within the same directory.". So I guess that this is not the solution I am looking for
finfobj.New1(false)
args.new1(1)
args.SetValue(0, "c:\temp\save\a.a", "System.String")
finfobj.CreateNew2("System.IO.FileInfo", args.Value)
If finfobj.GetProperty("Exists") = true Then
finfobj.RunMethod2("MoveTo", "c:\temp\save\b.b", "System.String")
End If
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?