Questions tagged [windows-scripting]

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

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

With early roots in browser scripting, these technologies such as , Windows Script Host (), HTML Applications (), and are employed as system administration tools providing methods of automation.

As the name implies, Windows Scripting technologies utilize scripts written in plain-text interpreted code. Windows Scripting can become quite powerful when used to implement other technologies such as (OLE) Automation, Active Directory Services Interfaces (), and Windows Management Instrumentation ().

398 questions
-2
votes
1 answer

search a string in text file using windows batch

I am trying to check if a particular string (Lost = 0) in a text file out.txt and echoing the result to a text file depends upon the error level.If the string is present in the text file, I need to echo service is up otherwise service is down. I am…
acr
  • 1,470
  • 9
  • 39
  • 63
-2
votes
2 answers

( was unexpected at this time. <-- is the error I am getting while running a bathc script

Please find below a program to copy-paste the folder from one location to another. While trying to execute it I am getting the error as : ( was unexpected at this time. @echo off set /p SrcPath= Source file is echo %SrcPath% set /p DestPath=…
Shreyash
  • 1
  • 2
-2
votes
2 answers

AutoIt Wait until browser window is visible not working as expected

Consider that I have the handle ($browser_handle) of a web browser window ('firefox') available in my AutoIt script. I would like perform some keystrokes after I know that the firefox browser window is open and visible on my display so that I can…
Hari Reddy
  • 3,708
  • 4
  • 28
  • 40
-2
votes
2 answers

Batch script: I want to run a batch script after giving the print command

I want a script to be executed after 10 seconds of giving the print command from any application. @echo off echo. echo Purging the print queue... net stop Spooler echo Deleting all print jobs... ping localhost -n 4 > nul del /q…
-2
votes
1 answer

windows - copy latest modified files from folder tree to new folder maintaining structure

I have a huge folder tree with files I occasionally modify. I want a script that goes through that folder tree and copies the latest modified files (let's say the ones modified today) and copies them in new folder placing them in the subfolders they…
Anonymous
  • 3,564
  • 3
  • 32
  • 56
-2
votes
1 answer

Windows 7 User Log off scripts - Keys getting deleted after reboot

I am trying to create a user log off script by adding a registry entry under HKCU\Software\Microsoft\Windows\CyrrentVersion\GroupPolicy\Scripts\Logoff. After I install the msi I built, the registry keys are set properly. Once the installation ends,…
user1528803
  • 67
  • 3
  • 8
-3
votes
1 answer

Answer a question in a command line program

Im running a program called CTB.exe, and it has a list of 5 options that we can do. I want a batch-file to run the program, and always answer 3 for the list to continue the program. I'm new to this and can't figure it out. I tried this in my bat…
-3
votes
1 answer

Undo the actions performed by a .bat file?

recent i search for a program "Action Mirilis" and a friend give me a .torrent link. I download it, and i read the "ReadMe.txt" file. In this file he say to run a .bat command to block comunication to mirilis server. And i want to undo this... This…
1 2 3
26
27