Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
set result of FINDSTR in FOR
Name: david_brown3020 Date: March 18, 2009 at 13:57:16 Pacific OS: Windows 2003 Subcategory: Batch
Comment:
Hi, I need to extract the result of the follwing to a new variable called "DominoServiceName"
for %%T in ("c:\program files\lotus\domino\notes.ini") do findstr "ServiceName" %%T
The output of the FINDSTR in the FOR statement is:
ServiceName=Lotus Domino Server (ProgramFilesLotusDominodata)
I just want to set the part after "ServiceName=" to DominoServiceName
Summary: You lacks good knowledge about variables and their usage. There are two kinds of variables in batch scripting: - environment variables, set up by the SET statement and referenced as %var% or !var! if ...
Summary: hello friends, i am hoping someone here can offer me some help. I have the following command. tasklist /FI "IMAGENAME eq outlook.exe" /FO CSV > C:\temp\search.log This creates a file called search.log...