Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
List of VBScript samples for WSH that worked in Wine @ Wineskin Winery

List

WSH Scripts below worked with Wine @ Wineskin winery.

  • Echo.vbs
  • Open_notepad.vbs
  • ReadFileAndConvertStrToUppercase.vbs

Reference

'Simple message dialog pops up in wine
WScript.Echo "hello world."
'Opens notepad app after the dialog is closed
Set objShell = WScript.CreateObject("WScript.Shell")
WScript.Echo "Notepad.exe will lounch."
objShell.Run "notepad.exe"
'Sample VBS file that converts text to uppercase letters
'in lowercase.txt and export to uppercase.txt.
Set objFSO = WScript.CreateObject("Scripting.FileSystemObject")
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set objInput = objFSO.OpenTextFile("lowercase.txt", ForReading)
Set objOutput = objFSO.OpenTextFile("uppercase.txt", ForWriting, True)
Do Until objInput.AtEndOfStream
strLine = objInput.ReadLine
objOutput.WriteLine UCase(strLine)
Loop
objInput.Close
objOutput.Close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.