Top "Windows-scripting" questions

Windows Scripting refers to any of the various scripting technologies that ship with Microsoft Windows products.

Adding a logoff script

I have some scripts that I would like to run every time a user logs off. I would like to …

windows winapi scheduled-tasks windows-scripting logoff
End of file in JavaScript

I want to read a local file line by line in JavaScript. Ut I can check if it goes to …

wsh jscript windows-scripting
Do MS-DOS built-in commands return an error\exit code?

I have not found a way to get the error code, if returned, of rmdir. It seems like the MS-DOS …

batch-file dos windows-scripting
How to compare if a folder exists and if it does not exist, create her

I have the following problem, I need to create a script that compares if the directory exists and if it …

powershell scripting powershell-3.0 windows-scripting
For loop recursively through folder in windows cmd for file rename

I'm trying to iterate through folders with images to create thumbnails using ImageMagic, and rename thumbnail files with small_ prefix. …

image command-line recursion rename windows-scripting
using Windows Script Host

I am using windows script host for some kind of installer application and I'm creating shortcuts in start menu with …

c# interop windows-scripting
How can I create a javascript library in a separate file and "include" it in another?

First, a caveat. The main script is not run in a webpage. I will be running the .js file in …

javascript include wsh windows-scripting
run batch script after windows server restart

I am trying to run a script to startup some services after windows reboot. I have tried one method: copying …

windows batch-file windows-server-2008 windows-server-2012-r2 windows-scripting
Cannot add "-persist" to New-PSDrive - getting error "network resource type is not correct"

As the title says, if I try to add -persist to the cmdlt, it returns an error: New-PSDrive : The network …

powershell windows-scripting drive-mapping powershell-v5.1 new-psdrive
How does one output bold text in powershell?

I got a Powershell script that do some automatic procedures, I use a "Write-Host" at the end of each one …

powershell windows-scripting write-host