Search found 233 matches

by Dos_Probie
24 Sep 2014 09:04
Forum: DOS Batch Forum
Topic: Ram memory Question? [ SOLVED ]
Replies: 26
Views: 22575

Re: Ram memory Question?

Thanks Compo for the wmic memory script! but yes instead of showing Available I need it to show the Installed memory (RAM) Which shows that way in system properties. (see updated script below showing single stick) ~DP @echo off For /F "Usebackq Delims== Tokens=2" %%x In (`WMIc MemoryChip G...
by Dos_Probie
24 Sep 2014 04:28
Forum: DOS Batch Forum
Topic: Ram memory Question? [ SOLVED ]
Replies: 26
Views: 22575

Re: Ram memory Question?

Let me clarify a few things with my code, I am running a Windows RT ARM-based PC (only has a sgl sick of 2GB of ram) and need to do this from pure batch and not powershell or vbs. I just want to convert over my posted batch to read in GB Much like this below code from here.==> http://www.dostips.com...
by Dos_Probie
23 Sep 2014 19:08
Forum: DOS Batch Forum
Topic: Ram memory Question? [ SOLVED ]
Replies: 26
Views: 22575

Ram memory Question? [ SOLVED ]

Need to convert this wmic batch script from Bytes to GigaBytes with the same variable any ideas? Thanks for the help, DP @echo off&color 1f FOR /F "tokens=2 delims='='" %%A in ('wmic memorychip Get capacity /value') Do (Set "Ram=%%A") FOR /F "tokens=1 delims='|'" %%...
by Dos_Probie
13 Aug 2014 17:03
Forum: DOS Batch Forum
Topic: why only first msi is getting installed??
Replies: 22
Views: 16273

Re: why only first msi is getting installed??

Well you have been given excellent advise and you seem to either don't understand or just choose to ignore it. Foxidrive has stated to remove the quiet switch "/q" with a pause to see what the error is and Compo has advised you to add the log switch to spot any installer errors and also to...
by Dos_Probie
18 Jul 2014 05:28
Forum: DOS Batch Forum
Topic: How to check for admin rights ?
Replies: 14
Views: 14658

Re: How to check for admin rights ?

I know this is now 5 days old but since you are running 8.1, this is what I use to force the end user to right-click when running as a non-admin, if admin it will just continue on. ~DP :: ### AdminCheck reg query "HKU\S-1-5-19" >NUL 2>&1 && ( goto admin ) || ( @color 4f mode co...
by Dos_Probie
08 Jun 2014 18:13
Forum: DOS Batch Forum
Topic: Can a batch file be written to check status of Wifi adapter?
Replies: 13
Views: 12355

Re: Can a batch file be written to check status of Wifi adap

On Windows 7 or 8 I can just enable or toggle back on my Wi-Fi with this script which will scan all available .xml files present then reconnect if found. for /f "tokens=*" %%a in ('dir/b/s "%ProgramData%\Microsoft\Wlansvc\Profiles\Interfaces"') do netsh wlan add profile filename=...
by Dos_Probie
21 May 2014 06:12
Forum: DOS Batch Forum
Topic: Remove DUPLICATES without SORTING the data (in .txt files)
Replies: 23
Views: 16144

Re: Remove DUPLICATES without SORTING the data (in .txt file

Still LQQks like Aacini wins the speed test and with only 8 lines of code and no disableDelayedExpansion! :mrgreen:
by Dos_Probie
18 May 2014 21:37
Forum: DOS Batch Forum
Topic: Run As Administrator in Domain Environment
Replies: 2
Views: 2714

Re: Run As Administrator in Domain Environment

You can do the runas with vbs getadmin script like so..DP @echo off&&setlocal :: Runas Administrator REM --> Check for permissions >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" REM --> If error flag set, we do not have admin. if '%e...
by Dos_Probie
29 Apr 2014 12:10
Forum: DOS Batch Forum
Topic: How to get available hard drive space [SOLVED]
Replies: 15
Views: 19132

Re: How to get available hard drive space

Thanks everyone on the script choices, I know PowerShell and Vbs would do a better job but just wanted to stick with pure batch, anyway will be using the Einstein revised script by Compo which gives me the results from a variable that I am looking for..
DP 8)
by Dos_Probie
28 Apr 2014 18:56
Forum: DOS Batch Forum
Topic: How to get available hard drive space [SOLVED]
Replies: 15
Views: 19132

Re: How to get available hard drive space figure in power of

Yes, it's much larger that 2 GB , actually 105 GB..DP
by Dos_Probie
28 Apr 2014 16:19
Forum: DOS Batch Forum
Topic: How to get available hard drive space [SOLVED]
Replies: 15
Views: 19132

Re: Question on Avialable hard drive output from batch?

Thanks, guys
@penpen , Yours when changing as you suggested outputs a INCORRECT amount of free space.
@compo, Yours works CORRECTLY but reads ALL drives not just the local drive.
DP :roll:
by Dos_Probie
28 Apr 2014 07:05
Forum: DOS Batch Forum
Topic: How to get available hard drive space [SOLVED]
Replies: 15
Views: 19132

How to get available hard drive space [SOLVED]

The below code will give me my CORRECT Local Drive Free space (as show in My Computer) when increasing 1024 to 1036. Is this just a issue with batch files doing the math or what? @echo off for /f "skip=1 usebackq delims==" %%i in (`wmic logicaldisk where "mediatype='12'" get capt...
by Dos_Probie
20 Apr 2014 06:21
Forum: DOS Batch Forum
Topic: Windows 8 batch files
Replies: 2
Views: 2627

Re: Windows 8 batch files

you can also add a runas admin script at the beginning as well.
by Dos_Probie
13 Apr 2014 15:14
Forum: DOS Batch Forum
Topic: [ SOLVED ] ampersand error "Eastern (US 'Canada)'
Replies: 15
Views: 11327

Re: ampersand error "Eastern (US 'Canada)'

Well, thanks for everyones input, wmic is a great tool but doesn't seem to play well with special characters so I am going back to my orginal systeminfo script with the output set per Ed's solution to parse out the ampersand character..DP For /F "Tokens=2,*" %%A In ('Systeminfo 2^>nul^|fin...
by Dos_Probie
13 Apr 2014 10:01
Forum: DOS Batch Forum
Topic: [ SOLVED ] ampersand error "Eastern (US 'Canada)'
Replies: 15
Views: 11327

Re: ampersand error "Eastern (US 'Canada)'

Thanks aGerman, but when using wmic and based on parts of the above scripts this will omit the quotation marks (which I want) but still shows the "amp;" and not "&" in the results.. @echo off &setlocal For /F "Tokens=1* Delims==" %%A In ('WMIC TimeZone get Capti...