Search found 9 matches
- 10 Feb 2014 17:07
- Forum: DOS Batch Forum
- Topic: Trouble with errorlevels
- Replies: 8
- Views: 10906
Re: Trouble with errorlevels
I spoke to quickly. Now I'm skipping over :Global Altogether when I input G at prompt. Here is my code: rem Declare Variables SET Java_Sec_Scope="" SetLocal EnableDelayedExpansion SET /P Java_Sec_Scope=Would you like to set the java security level (G)lobally or for (C)urrent User? IF /i &q...
- 10 Feb 2014 17:00
- Forum: DOS Batch Forum
- Topic: Trouble with errorlevels
- Replies: 8
- Views: 10906
Re: Trouble with errorlevels
Thanks for the reply I got it working by doing Following: SetLocal EnableDelayedExpansion SET /P Java_Sec_Scope=Would you like to set the java security level (G)lobally or for (C)urrent User? IF /i "%Java_Sec_Scope%"=="C" GOTO Local IF /i "%Java_Sec_Scope%"=="G&quo...
- 10 Feb 2014 16:26
- Forum: DOS Batch Forum
- Topic: Trouble with errorlevels
- Replies: 8
- Views: 10906
Re: Trouble with errorlevels
OK now in english please:)
What is delayed expansion and how caI implement in my code.
What is delayed expansion and how caI implement in my code.
- 10 Feb 2014 16:09
- Forum: DOS Batch Forum
- Topic: Trouble with errorlevels
- Replies: 8
- Views: 10906
Re: Trouble with errorlevels
Sorry I should have posted the whole goto label: :Global FINDSTR /I deployment.security.level= %userprofile%\AppData\LocalLow\Sun\Java\Deployment\deployment.properties >NUL IF %ERRORLEVEL% EQU 1 ( FINDSTR /I /L deployment.security.level=MEDIUM C:\Windows\Sun\Java\Deployment\deployment.properties >NU...
- 10 Feb 2014 16:00
- Forum: DOS Batch Forum
- Topic: Trouble with errorlevels
- Replies: 8
- Views: 10906
Trouble with errorlevels
Hello, I'm writing a batch script that checks for the presence of certain java files to change the security level on the computer. The problem is when checking the line IF %ERRORLEVEL% EQU 0 is never true in this code segment.. I put in an echo %errorlevel% command and I see that the errorlevel is a...
- 20 Feb 2013 17:19
- Forum: DOS Batch Forum
- Topic: ? on batch file not working
- Replies: 9
- Views: 9968
Re: ? on batch file not working
Yes that seems to work. Last night I was working on the trouble and found this program from sysinternals that identifies open handles called handle.exe. I incorporated it into the batch file like this: REM ====[ Settings ]================================== SET "FileName=C:\monitor\today.ppsx&qu...
- 19 Feb 2013 16:19
- Forum: DOS Batch Forum
- Topic: ? on batch file not working
- Replies: 9
- Views: 9968
Re: ? on batch file not working
Thanks abc0502 and everbody else who responded. The program seems to be working ok except for sometimes the program cant access the file today.ppsx. I get the error messages: The process cannot access the file because it is being used by another process. The process cannot access the file because it...
- 18 Feb 2013 20:38
- Forum: DOS Batch Forum
- Topic: ? on batch file not working
- Replies: 9
- Views: 9968
Re: ? on batch file not working
Yes you are correct. sleep it would appear has been deprecated. I have removed that from my batch file. Still get error "%~tX was unexpected at this time" after the first time thru the loop. I was looking thru stackoverflow website when I came across someone posting same problem trying to ...
- 18 Feb 2013 12:36
- Forum: DOS Batch Forum
- Topic: ? on batch file not working
- Replies: 9
- Views: 9968
? on batch file not working
Hello, I am a newbie to scripting so please forgive me if this question seems trivial. I have three computers that run a powerpoint .ppsx slide show as a sort of bulletin board. Throughout the day there are updates to the board. What I have been doing is remoting into each machine editing the .pptx ...