0
votes
2answers
35 views

Windows DOS Command for Finding folder name with specific characters & select it

Trying to write batch file code for copying contents of a folder with path "C:\ABC" to another folder whose exact name is unknown ( its a Profile data folder of firefox) Profiles of Firefox are ...
2
votes
3answers
59 views

In windows, is there a way to count the amount of times a string appears in a file

I am currently trying to write a batch script and at this point, I need to find a string, "null", and determine how many times it is shown in the file. I'm downloading an API from a website ...
0
votes
1answer
35 views

Using batch to verify a process is running with WMIC

I am attempting to write a script that will check if a process is running (in my case a virtual machine) @echo off wmic process where name="VirtualBox.exe" | find "GitHubEnterprise" /c > tmpcount ...
1
vote
1answer
445 views

batch script help, find, replace registry keys

I'm trying to figure out why my reg import command is not working in the script below. When I run the reg import fileName.reg from the DOS it works fine but when included in the script below it does ...
1
vote
1answer
827 views

Is the 'find' utility on Windows 7 different than the one on Windows XP?

I have a batch script that I created which works fine on Windows XP but faults on Windows 7. The script basically finds out what the OS is. wmic os get | find "Windows XP">nul if %ERRORLEVEL% ...
6
votes
1answer
17k views

DOS Batch file to find “new” files by date

My PC has entered an infinite BSOD loop - but I do have access to a safe-mode command prompt. I'm trying to get an idea of "what changed" that might have triggered this. e.g. I might have gotten a ...
3
votes
1answer
5k views

Batch File that copies the first 2 lines of a text file into another text file

I have a text file A.txt Pinging [xx.xx.xx.xx] with 32 bytes of data: Request timed out. Ping statistics for xx.xx.xx.xx: Packets: Sent = 1, Received = 0, Lost = 1 (100% loss) I would like to ...
0
votes
1answer
290 views

Cleaning up FIND header information in batch file

If I use FIND (WinXP) like this: FIND /I "blahblah" test.txt > test2.txt The first two lines are header information: CRLF ---------- TEST.TXTCRLF (The CRLF aren't visible of course). Is ...
1
vote
2answers
306 views

find in windows (batch files)

Does the find command in windows (command line) work to search inside of excel files?