Search found 4 matches

by OwainEsau
02 Nov 2016 23:58
Forum: DOS Batch Forum
Topic: Time not changing with variable
Replies: 8
Views: 4812

Re: Time not changing with variable

Thanks for that Aacini. I did get that part of the script working, and i have managed to pull the comma out of the value by putting it outside the loop. Here is my script so far (i split it into two batch files so i can have it check memory as the main batch file is waiting on the program to finish)...
by OwainEsau
02 Nov 2016 21:47
Forum: DOS Batch Forum
Topic: Time not changing with variable
Replies: 8
Views: 4812

Re: Time not changing with variable

Hi; Ok so ive managed to get this far: :checkMemory CLS ECHO [*] Running analysis on current memory usage ... Please wait :: Create variable for current available memory for /f "tokens=4-5 delims=: " %%i in ('systeminfo ^| findstr /B /C:"Available Physical Memory"') do ( set avai...
by OwainEsau
02 Nov 2016 19:01
Forum: DOS Batch Forum
Topic: Time not changing with variable
Replies: 8
Views: 4812

Re: Time not changing with variable

Hi; thanks for the reply, the time works well now. Im still having issues figuring you the available memory using the link you provided. When i use the following code: @echo off for /f "tokens=1,2* delims=: " %%i in ( 'systeminfo ^| findstr /B /C:"OS Name" /C:"Available Phys...
by OwainEsau
01 Nov 2016 21:13
Forum: DOS Batch Forum
Topic: Time not changing with variable
Replies: 8
Views: 4812

Time not changing with variable

Hi; I'm new to Batch and have created a script for work, whilst learning as i go along. (this is not a very elegant script, but it does the job... more or less) Anyway the idea of the script is to run a program cvimp.exe on a lost of files (this program doesnt dump memory which is why i need to spli...