Category "batch-file"

XCOPY Folder with Variable Name and Spaces

I want to create a batch that deletes files from some folders and then copies them back into them from another destination (another server). Some of these folde

How to process pathnames with ! within an for /F loop?

In a complex batch file I want to read in files with paths, among other things, to read them into a variable one after the other separated by spaces. This works

Windows batch - concatenate multiple text files into one

I need to create a script, which concatenates multiple text files into one. I know it's simple to use type *.txt > merged.txt But the requirement is to "con

Opening a gif full screen in a Batch Script [closed]

I have a batch script and I need it to open a gif file and display full screen. I have done research and all I can find is how to open the gif

comparing filenames with .bat and writing missing entries into .txt

i want to compare some files in a folder and then write missing ones into a text file. i've got a folder c:\sessions\ with files in it. those files are

Batch - Move file that start with pattern to a certain folder

I have a list of files organized like this: test%MM%YYYY%DD.txt, for example: test01201401.txt test01201402.txt test01201403.txt ... test02201401.txt test02201

delay a batch file in under a second?

Is there any way to delay a batch file in under a second, for example 10 milliseconds? I have tried to write this: ping localhost -n 1 -w 10 But it didn't w

Using call <file.bat> results in "sleep is not recognized as an internal or external command.."

I have a script that calls other commands in a for loop: for %%x in (%CMDS::= %) do ( call C:\%%x %1% echo "%%x complete" ) However, running this results

Installing list of programs using batch files [closed]

I wish to make a batch file that installs multiple programs :INSTALLER 1. 7-Zip 2. Adobe Creative Cloud ... ... 44. WinRAR 45. WizTree 46. Zoo

Is it possible to check if a two files shares the same name using batch file?

I have here a example directory that contains files with the same name but different extensions. - MAINFOLDER ˪ TEST.JPG ˪ TEST.PNG ˪ RAN

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