Skip to content

Instantly share code, notes, and snippets.

@Dystopian
Dystopian / fix_config.vbs
Created May 12, 2019 17:41
Clean A3 config files in folders unpacked with Mikero tools
' Author: Dystopian
' Clean A3 config files in folders unpacked with Mikero tools.
'
' Arguments: folder ...
Set fso = CreateObject("Scripting.FileSystemObject")
Const ForReading = 1, ForWriting = 2, ForAppending = 8
If WScript.Arguments.Count = 0 Then
WScript.Echo "Usage: " & WScript.ScriptName & " <folder> ..."
' Author: Dystopian
' Notify if Workshop mods are updated.
' Notification: file with mod changelog is opened.
'
' Arguments: [notify] [game_path]
' notify: notify even if no updates and file is not empty. Default: notify only if there are updates
' game_path: where Workshop folder is. Default: current directory
Set WshShell = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")