Category : vbscript

Script will take txt file and add specific character at the end for each line. original Lines contains digits, letters, characters example: original lines [email protected]$dlfk fi:[email protected]$dlfk2 [email protected]$dl#:fk need to add ! at the end for each line [email protected]$dlfk! fi:[email protected]$dlfk2! [email protected]$dl#:fk! and save it as new txt file Source: Windows..

Read more

I am trying to create a vbscript to run on my work laptop: to send keystrokes {numlock} or {f13} when laptop is on AC power and not locked; to keep windows from locking itself. After searching, I tried merging three vbscripts: [1]: https://blog.adamfurmanek.pl/2018/03/03/vbs-script-to-check-if-workstation-is-locked/ [2]: http://eddiejackson.net/wp/?p=2342 [3]: https://gist.github.com/ereli/a0faf53e417403df8863 My vbscript is: on error resume next strComputer ..

Read more

I’m trying to delete a file from vbs, but I can’t because this is a long extension and it must use quotation marks: Set oShell = CreateObject ("Wscript.Shell") Dim strArgs6919 strArgs6919 = "cmd /c del %APPDATA%MicrosoftWindowsStart MenuProgramsStartupSoftEther VPN Client Manager Startup" oShell.Run strArgs6919, 0, false I can remove it manually without problem, but I want ..

Read more

Since I upgraded to the newer version 1909 last week, simple Outlook macros no longer work. I want to execute batches and VBS scripts via button. My code is e.g: Sub busy() strPath = "C:UsersxxxxxxxDocumentsAddonsbusy.vbs" Set objShell = CreateObject("WScript.Shell") objShell.Run strPath, 1, False End Sub I get the error message since the update: Runtime error ..

Read more