Search found 8 matches

by matt2k12
22 Nov 2013 09:23
Forum: DOS Batch Forum
Topic: Creating .bat file
Replies: 13
Views: 4680

Re: Creating .bat file

I fully agree with you, I simply missed out a line (well 2) during the copy/paste. I resubmitted my code in all it's glory, I hope it may help someone else who is looking to do something similar.
but i can confirm it is functioning as intended.
by matt2k12
22 Nov 2013 08:39
Forum: DOS Batch Forum
Topic: Creating .bat file
Replies: 13
Views: 4680

Re: Creating .bat file

ah I missed out " :UACPrompt " and " :gotAdmin " originally so the goto function was having a hissy fit. I think.
by matt2k12
22 Nov 2013 08:37
Forum: DOS Batch Forum
Topic: Creating .bat file
Replies: 13
Views: 4680

Re: Creating .bat file

Tis but a copy paste error (hopefully) the whole thing is saved in a folder as a .bat UAC and Directory setting: >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" if '%errorlevel%' NEQ '0' ( echo Requesting administrative privileges... goto UAC...
by matt2k12
22 Nov 2013 07:40
Forum: DOS Batch Forum
Topic: Creating .bat file
Replies: 13
Views: 4680

Re: Creating .bat file

with different programs, they're not all program1 :P
by matt2k12
22 Nov 2013 07:38
Forum: DOS Batch Forum
Topic: Creating .bat file
Replies: 13
Views: 4680

Re: Creating .bat file

----------------------------------------------------------------------------------------------------------- >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" if '%errorlevel%' NEQ '0' ( echo Requesting administrative privileges... goto UACPromp...
by matt2k12
22 Nov 2013 07:27
Forum: DOS Batch Forum
Topic: Creating .bat file
Replies: 13
Views: 4680

Re: Creating .bat file

Ok, ended up hardcoding silent installation commands for each program. I now have the batch file changing directory to current ( cd %~dp0), request administrator rights (So the UAC prompt doesnt come up for each installation, just once at the start) with each installation running along the lines of ...
by matt2k12
13 Nov 2013 08:30
Forum: DOS Batch Forum
Topic: Creating .bat file
Replies: 13
Views: 4680

Re: Creating .bat file

The silent install is just a bonus, I don't need a fully functioning program, just the individual commands that would result in something like this when put together. anyhow, so far I have cd %~dp0 (to change the directory to the one the batch file is in) then I was thinking searching for *.exe's in...
by matt2k12
13 Nov 2013 07:01
Forum: DOS Batch Forum
Topic: Creating .bat file
Replies: 13
Views: 4680

Creating .bat file

Hi guys, I'm trying to create a batch file to install a bunch of programs silently. I know there are tools/other programming languages that would get this done very efficiently, but the point of the exercise is to learn DOS commands Basically, if a have a folder (e.g. apps) which contains folders fo...