Click here to Skip to main content
15,900,589 members
Home / Discussions / Windows Development
   

Windows Development

 
GeneralRe: select() slowness Pin
Gisle Vanem29-Jun-22 23:51
Gisle 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
Gisle 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
Gisle Vanem30-Jun-22 8:51 
GeneralRe: select() slowness Pin
k505430-Jun-22 11:18
mvek505430-Jun-22 11:18 
GeneralRe: select() slowness Pin
Gerry Schmitz2-Jul-22 7:12
mveGerry Schmitz2-Jul-22 7:12 
AnswerRe: select() slowness Pin
Eddy Vluggen2-Jul-22 4:32
professionalEddy Vluggen2-Jul-22 4:32 
AnswerRe: select() slowness Pin
Randor 20-Jul-22 2:37
professional Randor 20-Jul-22 2:37 
QuestionWhat does MS mean by the words "MinimalVisualStudioVersion" found in .sln files? Pin
RedDk15-Dec-21 12:14
RedDk15-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
michaelbarb6-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
Samir 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
Samir 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
Samir Ibrahim6-Mar-22 21:09 
GeneralRe: Binding Pin
RedDk5-Mar-22 10:21
RedDk5-Mar-22 10:21 
QuestionBatch file - If statement findstr Pin
User 1536543221-Oct-21 9:11
User 1536543221-Oct-21 9:11 
AnswerRe: Batch file - If statement findstr Pin
Dave Kreskowiak21-Oct-21 12:09
mveDave Kreskowiak21-Oct-21 12:09 
It's impossible to test your script, but I will say if FINDSTR finds the string in the file, ERRORLEVEL will be 0. If not found, or the file does not exist, ERRORLEVEL will be 1.

When you check for ERRORLEVEL in a block of IF statements, you have to check for the highest possible errorlevel value first and check for 0 last. This is because the IF ERRORLEVEL will return true if ERRORLEVEL is greater than or equal to the specified value. So if you check for 0 first, the result will always be true, no matter what the value of ERRORLEVEL is.

Remove the ECHO's from your IF statements and just jump to a block that contains the ECHO statements and what to do after that. This will eliminate the need for multiple IF statements checking for the same ERRORLEVEL.

QuestionGetting the interactive user's display language from a service Pin
Daniel Pfeffer25-Aug-21 4:24
professionalDaniel Pfeffer25-Aug-21 4:24 
AnswerRe: Getting the interactive user's display language from a service Pin
Randor 25-Aug-21 10:08
professional Randor 25-Aug-21 10:08 

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.