Skip to main content

Questions tagged [vbscript]

An interpreted scripting language developed by Microsoft that is modeled on Visual Basic

1 vote
1 answer
4k views

How to run a script when the screen is turned off for being idle?

just wondering whether its possible to run a script when Windows turns the screen off after a period of inactivity (not sleep or hibernate but just switching off the screen) as well as when the user ...
George's user avatar
  • 13
1 vote
3 answers
1k views

Detect changed files

How to detect changed files and move them to a folder named storage on my desktop is there any way I can do it with powershell/bat/vbscript without any third party tools?
TheCodeExpert's user avatar
1 vote
1 answer
710 views

Commands to copy and paste

I want my powershell/batch/vbscript to be able to copy a text start notepad and then paste it I found how to copy which is here but I don’t know how to paste it any ideas how can I do it without third ...
TheCodeExpert's user avatar
0 votes
2 answers
840 views

Powershell Script to Copy Data Only into Folders That Are Empty on Destination

I have a case where a FileServer migration was not successful because the user who did not have permission on all folders. So I have two servers with the same folder structure, but as users have ...
Lekost93's user avatar
0 votes
2 answers
2k views

Windows 10 suddenly refuses to run VBS script [Code 800A802D]

Windows Version: 21H1 (OS Build 19043.1151) [Windows 10 Pro 64-Bit] AV is Windows Defender & brain.exe Now to my problem: Since recently I no longer can run my VBS script. error-msg and exclusion -...
Aebian's user avatar
  • 1
0 votes
1 answer
734 views

Blank/White/Missing App Icons in Windows 10: Simple Solution?

My desktop icons have suddenly gone blank, similar to as shown below: Quite annoying and problematic for me as I heavily rely on logos and icons to navigate my desktop smoothly and I would appreciate ...
Virtuality's user avatar
  • 1,311
1 vote
0 answers
211 views

Change affinity of process with batch script

Change affinity of process with batch script: "C:\Program Files\Microsoft Office\Office16\MSACCESS.EXE /C Start /affinity 1" "E:\Lapu\CM.accdb" /x "001" Unable to get ...
Shaf3067's user avatar
0 votes
0 answers
5k views

How to run vbscript command from cmd

(I don't speak English. Hope you understand.) Hi, I have the following VBS command. set shell = CreateObject("Wscript.Shell") : shell.run "notepad" (Start notepad, but from vbs.) ...
Andrew's user avatar
  • 85
0 votes
1 answer
288 views

Run VBS file in the folder protected from the standard user when the user starts Windows

I know that in order to run VBS file on Windows starting, we can create a Windows registry string with the VBS file path under the HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Run. But ...
sprsr's user avatar
  • 269
1 vote
0 answers
609 views

Can't run VBS files in Command prompt

In a beginner coding course that wants us to use command prompt to execute various types of files we created in notepad. I have run JavaScript and Python files, but whenever I try to run a VBS file I ...
Zach's user avatar
  • 11
0 votes
0 answers
149 views

vbs printing script problems

Hi all i got some problems with this vbs script set shApp = CreateObject("shell.application") currentPath = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".&...
asiawatcher's user avatar
0 votes
1 answer
3k views

how to copy folder\subfolder\files to program files directory with batch script inside the folder

:: BatchGotAdmin :------------------------------------- REM --> Check for permissions IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" ( >nul 2>&1 "%SYSTEMROOT%\SysWOW64\...
Gary Doman's user avatar
2 votes
1 answer
46 views

How to automate vb script

I have this code: Sub NewYearData() Dim wb1 As Workbook, wb2 As Workbook Dim r1 As Range, r2 As Range Dim addy As String, sh As Worksheet Dim shName As String Set wb1 = ...
Domagoj Culinovic's user avatar
0 votes
1 answer
2k views

Use VBS To focus on a specific process without process title or PID

I have a VBScript that should work to focus a given process (taken from here): Dim ObjShell :Set ObjShell = CreateObject("Wscript.Shell") ObjShell.AppActivate("Notepad") But ...
A__'s user avatar
  • 327
0 votes
0 answers
213 views

Robocopy started hidden with vbs script not showing exit codes in Task Scheduler

Trying solutions here and here works fine, except in Task Scheduler Last run result always shows as The operation completed successfully. (0x0) instead of 0x2 or 0x3 without vbs: Is it possible to ...
lemeie's user avatar
  • 1

15 30 50 per page
1 2 3
4
5
32