Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Name: lee123abc
Hi all!
I want to get the free space and I know there are loads of topics already. I have read through them.
I just wanted to know if something like this would work. Please take a look. Thank you.dir c:\|find /i "bytes free" >> set space=
You see I want to set the variable "space" without creating a temporary file on my hard drive.

I have this but as you see it creates a file called 1.txt
There must be a way@echo off & cls
dir c:\|find /i "bytes free">> 1.txt
setlocal enabledelayedexpansion
for /f "tokens=* delims=" %%A in (1.txt) do (
set line=%%A
set line=!line:~26,-11!
echo.!line!)
del 1.txt & pause>nul

Hi R2,
I'm off to a bit of a slow sttart.
=====================================
Helping others achieve escape felicityM2

Look at the html for this page.
In firefox: ctrl-u
=====================================
Helping others achieve escape felicityM2

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |