Category "batch-file"

Why is a line added to .Body when creating mail?

I use an Outlook rule to run a batch file in Windows that takes as input the Subject and the Body of the email (this means two arguments). If I run the line dir

Time maximums in Windows shell and Why?

I made a simple countdown in Windows Batch Scripting: @ECHO OFF MODE con: cols=13 lines=2 COLOR 4f TITLE Countdown Timer SET /p m=? Minutes: SET /a s = 60 * m

Using BATCH file to install software (which I have working) and THEN create a shortcut file

Here is what I have so far: IF EXIST "C:\Program Files (x86)\Yawcam\Yawcam.exe" GOTO :eof ELSE start \\hazel\software$\YawCam\v6.0\yawcam_install.exe /SP- /V

calling devcon from inside windows forms not working

Plan The plan is to disable and subsequently enable a device from inside a windows forms application. To test the first building block of my plan, I open cmd wi

how to remove a Negative using a txt editing batch script

I need a little help with this I recently asked a different question on this same script Now I have my scripted working for me and found a new issue Here is

Opening Streamlit using bat file results in File Not Fund Error

Trying to open a app using .bat file so that other users don't have to use a terminal to open the app. The bat file has the contents as below set root=C:\User

Howto use psexec via powershell invoke-command on a remote computer? (invalid handle)

I have written a powershell script which creates a powershell script or a batch script depending on the remote host on which this script should be started remot

psexec remote computer name

I am mostly new to this kind of stuff and running into a problem I don't know how to solve. Basically, it's looking at test.txt and using the list of computer n

Set errorlevel in Windows batch file

I am writing a batch script that will loop through each line of a text file, (each line containing a filename) check if the file exists and then runs the file a

Using a .bat to change directories and run Jupyter

I'm new to coding but I simply want to change directory and run jupyter. The problem is cmd instantly closes once it reaches the jupyter notebook command. Trie

Windows Batch File - Net Use encounter "System Error 64"

Been encountering this error "System error 64 - the specified network name is no longer available" in one of my windows batch script while trying to NET USE \se

Halt batch file until website stop is complete?

This question is very similar to Halt batch file until service stop is complete? but I would like to stop a website instead. I currently have appcmd stop sites

Kill MSAccess process via batchfile

I am trying to open MS access have a delay of about 5 seconds then close the application. With the .bat file below I have the program opening but I can not get

Creating a batch file that opens google chrome and puts input into the search box?

So I am just playing with batch files and was curious if it was possible to create a batch file that opens the google browser and without typing into the search

Windows batch script - requesting UAC admin rights in a log-friendly way

I'm requesting admin with the following in a batch script: : BatchGotAdmin REM --> Check for permissions >nul 2>&1 "%SYSTEMROOT%\system32\cacls.e

Open text file via batch?

I am trying to access a text file using batch when a user enters a certain command. I have tried doing start E:\Programming\Important\Folder\Textfile Cls And

Fast(er) way to get folder size with batch script

PLEASE SEE BELOW THE ORIGINAL QUESTION FOR SOME TEST COMPARISONS OF DIFFERENT WAYS: So I tried 2 ways so far: 1.Iterate through directory using the code from

How to kill a Robocopy batch script via Taskkill?

I started a batch script that activates Robocopy to copy some really big folder from some source to a destination. When I run the script I can see the cmd wi

Batch script access denied even with admin privileges

I have a batch script in Windows7 to update the hosts file that fails. I am logged as a user with administrative rights. Even if I run the script with the "Run

Create WinRAR SFX with admin rights by command line

I need to create WinRAR SFX archive that should work with admin permissions on Windows 7. I can make it with WinRAR GUI but I need to make it with WinRAR comman