Click here to Skip to main content
15,354,171 members
Home / Discussions / Windows Development
   

Windows Development

 
PinnedSome links to get started with Metro PinPopular
Nish Nishant23-Feb-12 10:11
sitebuilderNish Nishant23-Feb-12 10:11 
Questionselect() slowness Pin
Gisle Vanem29-Jun-22 22:18
MemberGisle Vanem29-Jun-22 22:18 
AnswerRe: select() slowness Pin
Pete O'Hanlon29-Jun-22 22:46
mvaPete O'Hanlon29-Jun-22 22:46 
GeneralRe: select() slowness Pin
Gisle Vanem29-Jun-22 23:22
MemberGisle Vanem29-Jun-22 23:22 
GeneralRe: select() slowness Pin
Pete O'Hanlon29-Jun-22 23:44
mvaPete O'Hanlon29-Jun-22 23:44 
GeneralRe: select() slowness Pin
Gisle Vanem29-Jun-22 23:51
MemberGisle Vanem29-Jun-22 23:51 
GeneralRe: select() slowness Pin
Dave Kreskowiak30-Jun-22 4:28
mveDave Kreskowiak30-Jun-22 4:28 
GeneralRe: select() slowness Pin
Gisle Vanem30-Jun-22 8:03
MemberGisle Vanem30-Jun-22 8:03 
GeneralRe: select() slowness Pin
Dave Kreskowiak30-Jun-22 8:12
mveDave Kreskowiak30-Jun-22 8:12 
GeneralRe: select() slowness Pin
Gerry Schmitz30-Jun-22 8:22
mveGerry Schmitz30-Jun-22 8:22 
GeneralRe: select() slowness Pin
Gisle Vanem30-Jun-22 8:51
MemberGisle Vanem30-Jun-22 8:51 
GeneralRe: select() slowness Pin
k505430-Jun-22 11:18
mvek505430-Jun-22 11:18 
QuestionWhat does MS mean by the words "MinimalVisualStudioVersion" found in .sln files? Pin
RedDk15-Dec-21 12:14
MemberRedDk15-Dec-21 12:14 
AnswerRe: What does MS mean by the words "MinimalVisualStudioVersion" found in .sln files? Pin
Randor 22-Dec-21 6:52
professional Randor 22-Dec-21 6:52 
QuestionBinding Pin
michaelbarb6-Dec-21 5:50
Membermichaelbarb6-Dec-21 5:50 
AnswerRe: Binding Pin
Richard MacCutchan6-Dec-21 6:16
mveRichard MacCutchan6-Dec-21 6:16 
AnswerRe: Binding Pin
Gerry Schmitz6-Dec-21 6:23
mveGerry Schmitz6-Dec-21 6:23 
AnswerRe: Binding Pin
Samir Ibrahim4-Mar-22 21:37
MemberSamir Ibrahim4-Mar-22 21:37 
GeneralRe: Binding Pin
Eddy Vluggen5-Mar-22 4:14
professionalEddy Vluggen5-Mar-22 4:14 
GeneralRe: Binding Pin
Samir Ibrahim6-Mar-22 21:32
MemberSamir Ibrahim6-Mar-22 21:32 
GeneralRe: Binding Pin
RobertSF5-Mar-22 6:14
professionalRobertSF5-Mar-22 6:14 
GeneralRe: Binding Pin
Samir Ibrahim6-Mar-22 21:09
MemberSamir Ibrahim6-Mar-22 21:09 
GeneralRe: Binding Pin
RedDk5-Mar-22 10:21
MemberRedDk5-Mar-22 10:21 
QuestionBatch file - If statement findstr Pin
User 1536543221-Oct-21 9:11
MemberUser 1536543221-Oct-21 9:11 
Hello, 

I've been working with this batch file for a few hours and I can't seem to get this file to work properly and I can't use PowerShell because my company's network won't allow it so I'm using a batch file.  I'm trying to go through a list of machines and I can't seem to get past the first machine.  I think I found the issue though but can't seem to get the line fixed to go to the second machine.  I think it's after the findstr line after troubleshooting the code line by line.

Here's my code of what I tried.


""
@echo off
For /f %%i in (C:\Users\%username%\desktop\computers.txt) do (
echo %DATE% %TIME%
echo.
Echo ************************
Echo %%i
Echo ************************
:name
ping %%i /n 1 | find "Reply from %%i:"
if errorlevel 0 echo The computer is online and on VPN
if errorlevel 1 echo The computer is offline or not on VPN
if errorlevel 1 goto skip
REG QUERY "\\%%i\regpath" | findstr "Computer"
query user /server:%%i
dir /T:W "\\%%i\C$\path\file.exe" | find "exe"
(findstr /i /l "configurationserver=https://URL" \\%%i\C$\path\file.ini > NUL && (goto skip) || goto fixfile)
:FIXFILE
echo pfile.ini isn't good
code to fix issue
:SKIP
echo file is good
)
pause
""

for testing purposes the computers.txt has two computer IP Addresses

%IPADDRESS%
%IPADDRESS%

I've tried errorlevel for the findstr and also the second solution within the code.

AnswerRe: Batch file - If statement findstr Pin
Dave Kreskowiak21-Oct-21 12:09
mveDave Kreskowiak21-Oct-21 12:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.