none
Rename File without Extension using VBS RRS feed

  • Question

  • Hello all

    I'd like to know how to change a name of a file that doesn't have an extension.

    For example: Every week a report is exported to C:\Temp\ called: WeeklyReport

    This file doesn't have an extension.

    Set objFSO = CreateObject("Scripting.FileSystemObject")
    objFSO.MoveFile "C:\Temp\WeeklyReport*" , "C:\Temp\WeeklyReport.txt"

    Any ideas?

    Friday, September 25, 2015 4:03 AM

Answers

All replies