Questions tagged [vbscript]
An interpreted scripting language developed by Microsoft that is modeled on Visual Basic
476
questions
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 ...
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?
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 ...
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 ...
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
-...
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 ...
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 ...
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.) ...
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 ...
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 ...
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(".&...
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\...
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 = ...
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 ...
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 ...