Search found 26 matches
- 13 May 2017 09:05
- Forum: DOS Batch Forum
- Topic: Run batch file invisible on startup with uac, if uac fails to obtain admin, continue batch file after uac is closed
- Replies: 20
- Views: 13460
Re: Run batch file invisible on startup with uac, if uac fails to obtain admin, continue batch file after uac is closed
Thanks works perfectly, took me time to get the chance to test it. However, i still need it to run invisible if admin isnt aquired, if admin isn't aquired from the uac, the batch file still continues to display a visible window before closing the window, how would I make it run itself invisible with...
- 08 May 2017 14:48
- Forum: DOS Batch Forum
- Topic: Run batch file invisible on startup with uac, if uac fails to obtain admin, continue batch file after uac is closed
- Replies: 20
- Views: 13460
Re: Run batch file invisible on startup with uac, if uac fails to obtain admin, continue batch file after uac is closed
Oh I see, thanks that makes things much easier to edit now. I wasn't suspecting anything honestly, I was trying to display the values of the script to understand what exactly the code was doing. Give me one moment, I've used parameters before, just didn't understand exactly what the "if not def...
- 08 May 2017 10:54
- Forum: DOS Batch Forum
- Topic: Run batch file invisible on startup with uac, if uac fails to obtain admin, continue batch file after uac is closed
- Replies: 20
- Views: 13460
Re: Run batch file invisible on startup with uac, if uac fails to obtain admin, continue batch file after uac is closed
@echo off &setlocal EnableExtensions DisableDelayedExpansion cd /d "%~dp0"&if "%~1"=="~e~" (shift&goto :elevated) set "param=%*" >nul 2>&1 net session &&(set "__verb=open")||(set "__verb=runas") set "vbs=%temp%...
- 06 May 2017 08:22
- Forum: DOS Batch Forum
- Topic: Run batch file invisible on startup with uac, if uac fails to obtain admin, continue batch file after uac is closed
- Replies: 20
- Views: 13460
- 05 May 2017 21:15
- Forum: DOS Batch Forum
- Topic: Run batch file invisible on startup with uac, if uac fails to obtain admin, continue batch file after uac is closed
- Replies: 20
- Views: 13460
Re: Run batch file invisible on startup with uac, if uac fails to obtain admin, continue batch file after uac is closed
Oh wait, I can.... Sorry if my message wasn't clear, im not used to this website yet....
- 05 May 2017 15:12
- Forum: DOS Batch Forum
- Topic: Run batch file invisible on startup with uac, if uac fails to obtain admin, continue batch file after uac is closed
- Replies: 20
- Views: 13460
Re: Run batch file invisible on startup with uac, if uac fails to obtain admin, continue batch file after uac is closed
That's weird, the code tag messed up, phone probably glitched, mybad I can't change it now
- 05 May 2017 08:59
- Forum: DOS Batch Forum
- Topic: Run batch file invisible on startup with uac, if uac fails to obtain admin, continue batch file after uac is closed
- Replies: 20
- Views: 13460
Run batch file invisible on startup with uac, if uac fails to obtain admin, continue batch file after uac is closed
Hello, I need a way to make a batch file start invisible with uac, but if the uac fails to get administrative privileges, continue the batch script invisible without admin. This is my script. @echo off ::copies itself to temp folder if not exist "%TEMP%\%~NX0" ( copy %0 "%TEMP%\%~NX0&...
- 17 Apr 2017 20:24
- Forum: DOS Batch Forum
- Topic: How to view through a byte order mark in batch using findstr
- Replies: 6
- Views: 4311
Re: How to view through a byte order mark in batch using findstr
how ever since the characters are turned Chinese like, it interferes with findstr and prevents me from finding the phrase ":TEST". Yes it interferes with notepad (and any other text editor that recognizes boms), but no it doesn't interfere with findstr ("bomTest.bat"): @echo off...
- 17 Apr 2017 14:13
- Forum: DOS Batch Forum
- Topic: How to view through a byte order mark in batch using findstr
- Replies: 6
- Views: 4311
Re: How to view through a byte order mark in batch using findstr
I need to use findstr to view in batch and exe files with raw text. I am not sure I understand you, but as far as I know you can't view the contents of exe files in a reasonable way using a text editor, the closest you'll come to viewing exe files is through programs like OllyDbg. Okay I tested it ...
- 17 Apr 2017 13:55
- Forum: DOS Batch Forum
- Topic: How to view through a byte order mark in batch using findstr
- Replies: 6
- Views: 4311
Re: How to view through a byte order mark in batch using findstr
I need to use findstr to view in batch and exe files with raw text. I am not sure I understand you, but as far as I know you can't view the contents of exe files in a reasonable way using a text editor, the closest you'll come to viewing exe files is through programs like OllyDbg. Mybad I should ha...
- 16 Apr 2017 14:22
- Forum: DOS Batch Forum
- Topic: How to view through a byte order mark in batch using findstr
- Replies: 6
- Views: 4311
How to view through a byte order mark in batch using findstr
Hello, I have a trick that many may not know If you copy and paste this in the beginning of your batch files, it will Entirely encode the contents of the script with a byte order mark. however it is possible to View through the byte order mark in hex editors. This is the file that has the byte order...