Add files via upload

master
AiTechEye 2019-03-04 16:01:44 +01:00 committed by GitHub
parent 630ec3c86f
commit b659537879
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

16
LineMessConverter.vbs Normal file
View File

@ -0,0 +1,16 @@
a=WScript.Arguments(0)
t=CreateObject("Scripting.FileSystemObject").getextensionname(a)
if t="lua" or t="txt" or t="conf" or t="md" then
f=CreateObject("Scripting.FileSystemObject").OpenTextFile(a,1).readall
f2=""
for each l in split(f,chr(10))
f2=f2 & l & vbnewline
next
CreateObject("Scripting.FileSystemObject").CreateTextFile(a).writeline(f2)
CreateObject("WScript.Shell").run"notepad.exe " & a,1,0
end if