Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [batch-file]

A batch file is a text file containing a series of commands that are executed by the command interpreter on MS-DOS, IBM OS/2, or Microsoft Windows systems.

0
votes
0answers
2 views

Problems with [Y] / [N] cmd

I created a Batch script that asks Are you Sure [Y] / [N]? Y and N are the only options but I can still choose any other number and letter, and even when I answer Y I have to press Enter to confirm ...
1
vote
0answers
15 views

Pause command is run out of order when running “start cmd /c” multiple times [on hold]

I have a script like this: @start /b cmd /c net stop "Service" @start /b cmd /c net stop "Service" @start /b cmd /c net stop "Service" @start /b cmd /c net stop "Service" @start /b cmd /c net stop "...
1
vote
1answer
14 views

RDP connection by making it .bat file

I want to automate the RDP connection by making a bat file. But it still keeps on asking me the password. I created two files 1.hello.cmd 2.hello1.bat In hello.cmd I had put cmdkey /generic:"...
1
vote
1answer
11 views

String comparison with wildcard in batch file

My script do not work with wildcards (IF function)! Log.txt is a List of filenames, some of them should be copied: (IF exclusion==filename copy) the rest (else echo *.html) for /f "usebackq delims=" %...
-3
votes
0answers
32 views

How to make an exe tool? [on hold]

In the image above, how can I add a second OK button, one runs these commands: @start /b cmd /c net stop wuauserv @start /b cmd /c net stop BITS and the second box runs these commands: reg add "...
0
votes
1answer
24 views

Zip Files by Date

I have a folder full of log files on a Windows machine (Windows server 2008 R2, or I could copy them to Win10), and I want to zip them by date. I'd love to do this with native means (eg: CMD/BAT, ...
0
votes
2answers
50 views

Possible to use & join Long Path Variables in Batch file to call an EXE with those longer variables as command-line arguments? How?

Possible to use Long Path Variables in Batch file to call an EXE with those variables as command-line arguments? How? I read that we can SET various kind of variables in a Batch file. Also, some of ...
1
vote
1answer
45 views

Executing multiple commands in batch

I have exe file called invis.exe, which is a converted vbs to and exe with this content: CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False Using this I want to ...
0
votes
1answer
38 views

Batch to update IP address of a string in a text file

Please assist me on the below script as I need to update machine IP address in a config file followed by a particular string. Script as follows: @ECHO OFF SET CONFFILE="C:\Test\agent.properties" set ...
-3
votes
1answer
62 views

Batch script (cmd) resulting in DD-MM-YYYY_weekday (FRI) format

I need to use date /t command and convert the date format to DD-MM-YYYY weekday like (MON/TUE/WED) with all the "-" and "_" as listed I can't find an answer on my question. Could you please help me? ...
0
votes
0answers
25 views

How to change IP address of multiple computers using batch file script?

How to change IP address of multiple computers using batch file script. I'm planning to run this via GPO so that i can change numbers of computers using 1 script. Hope you can help me.
0
votes
1answer
35 views

batch-file parsing multiline command output

I am trying to parse a multi-line output and struggling with a few things. I'm trying to write a script that will execute the 'diff' command and identify files that have been modified or added to a ...
0
votes
0answers
29 views

The system cannot find the file specified

I am using Intel Trace Collector from Intel® Parallel Studio XE for Windows. I am at a step where environment variables need to be set up. The user manual on page 9 says to set up the environment ...
0
votes
0answers
22 views

Windows 10 - Configure WiFi Direct via batch file without internet?

I think I may have initially posted this in the wrong section, hopefully I got it right this time... I have an Intel AC 9260 in my laptop that no longer supports Soft AP/hostednetwork due to driver ...
-1
votes
1answer
48 views

How would I run this on a chromebook?

I have made a text adventure game for windows but would like to expand to other operating systems. I have people on discord helping me with converting it to Macintosh OS, but I would like to have it ...

15 30 50 per page