I created a file of the exact same size, you (Squashman) are using:
Code: Select all
Z:\>test.bat
@echo off
setlocal enableExtensions enableDelayedExpansion
type "%~f0" & echo(
if not exist "file" (
set "a=aaaa"
call set "a=%%a:a=!a:a=aa!%%"
call set "a=%%a:a=!a:a=aa!%%"
echo !time!
set "a=!a:~-1022!"
>file (
for /l %%a in (1, 1, 2887347) do echo(!a!
echo(!a:~-624!
)
)
for %%a in ("file") do echo %%~za
echo !time!
>nul type "file"
echo !time!
>"file2" type "file"
echo !time!
endlocal
13:21:21,71
2956643954
13:25:03,57
13:27:07,63
13:30:45,65
Same result (00:02:04,06 to nul, 00:03:38,02 to file), so it is neither the filesize nor its fragmentation.
The core speed (2.3/3.0 GHz) shouldn't make such a difference (and i assume the cores are running in parallel - but to be honest i never realy thought about it).
Another possible cause were the 32 versus 64 bit win os.
@SIMMS7400:
Are you also using a 64 bit OS?
The bad thing: Actually i have no access to other PCs.
penpen