How do I rename a file using VBScript?

后端 未结 7 1930
北恋
北恋 2020-12-11 01:44

I am trying to rename a file and was using the below code but it does not seem to work. Can someone please tell me why? What is the correct way to rename a file from VBScrip

相关标签:
7条回答
  • 2020-12-11 02:35

    I see only one reason your code to not work, missed quote after file name string:

    VBScript:

    FSO.GetFile("MyFile.txt[missed_quote_here]).Name = "Hello.txt"
    
    0 讨论(0)
提交回复
热议问题