How do I rename a local or remote file? Use the CIM_DataFile class. Ensure that you pass the entire path name when calling the Rename method, for example, “C:\Foo\Test.txt” instead of “Text.txt”. const wbemFlagForwardOnly = $00000020; var FSWbemLocator : OLEVariant; ...
More...