Set a VBS file encoding-VBForums
Results 1 to 2 of 2

Thread: Set a VBS file encoding

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2017
    Posts
    1

    Set a VBS file encoding

    Hello,

    I use the following code in a BAT file to open a folder and select a file in an existing Windows Explorer window (QTTabBar installed).

    Code:
    start "" %1
    
    :VBSDynamicBuild
    SET TempVBSFile=%temp%\~tmpSendKeysTemp.vbs
    
    ECHO Set tSK = CreateObject("WScript.Shell") >> "%TempVBSFile%"
    ECHO WScript.Sleep 200 >> "%TempVBSFile%"
    ECHO tSK.SendKeys "^q%~2" >> "%TempVBSFile%"
    
    CSCRIPT //NoLogo "%TempVBSFile%"
    
    DEL /F /Q "%TempVBSFile%"
    I need to change the temp VBS file encoding so that Hebrew characters should be recognized.
    How can I do that from the BAT file?

    I'd appreciate your help.

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    30,419

    Re: Set a VBS file encoding

    Thread moved to VBScript, since that seems more likely to garner a useful response.
    My usual boring signature: Nothing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.