Jump to content

Code box test


Alan_B

Recommended Posts

Testing now

@echo off
SET SOURCE=E:\Images\v5\2FE769AFA97E71E8-09-09.inc_06.mrimg
echo %TIME% #
FOR /F "tokens=1-4 delims=:." %%d in ("%TIME%") do (
 SET /A T1=%%d*360000+1%%e*6000+1%%f*100+1%%g-610100
)
COPY %SOURCE% E:\Test\
echo %TIME% ##
FOR /F "tokens=1-4 delims=:." %%d in ("%TIME%") do (
 SET /A T2=%%d*360000+1%%e*6000+1%%f*100+1%%g-610100-%T1%
)
echo Copying %SOURCE% took %T2%0. mSec
pause

@echo off

 

SET SOURCE=E:\Images\v5\2FE769AFA97E71E8-09-09.inc_06.mrimg

 

echo %TIME% #

FOR /F "tokens=1-4 delims=:." %%d in ("%TIME%") do (

SET /A T1=%%d*360000+1%%e*6000+1%%f*100+1%%g-610100

)

 

COPY %SOURCE% E:\Test\

 

echo %TIME% ##

FOR /F "tokens=1-4 delims=:." %%d in ("%TIME%") do (

SET /A T2=%%d*360000+1%%e*6000+1%%f*100+1%%g-610100-%T1%

)

 

echo Copying %SOURCE% took %T2%0. mSec

pause

 

Code box still broken

Link to comment
Share on other sites

  • Moderators

@echo off

SET SOURCE=E:\Images\v5\2FE769AFA97E71E8-09-09.inc_06.mrimg

echo %TIME% #
FOR /F "tokens=1-4 delims=:." %%d in ("%TIME%") do (
SET /A T1=%%d*360000+1%%e*6000+1%%f*100+1%%g-610100
)

COPY %SOURCE% E:\Test\

echo %TIME% ##
FOR /F "tokens=1-4 delims=:." %%d in ("%TIME%") do (
SET /A T2=%%d*360000+1%%e*6000+1%%f*100+1%%g-610100-%T1%
)

echo Copying %SOURCE% took %T2%0. mSec
pause

 

I'm confused what exactly is broken?

 

OK I see it. If the code bbc button is pressed and the code is pasted extra endlines are being removed. If you type

[code] 

[/code]

and paste it in the middle (old school method of bbc before fancy "enter information here" boxes endlines remain entact.

 

@echo off

SET SOURCE=E:\Images\v5\2FE769AFA97E71E8-09-09.inc_06.mrimg

echo %TIME% #
FOR /F "tokens=1-4 delims=:." %%d in ("%TIME%") do (
SET /A T1=%%d*360000+1%%e*6000+1%%f*100+1%%g-610100
)

COPY %SOURCE% E:\Test\

echo %TIME% ##
FOR /F "tokens=1-4 delims=:." %%d in ("%TIME%") do (
SET /A T2=%%d*360000+1%%e*6000+1%%f*100+1%%g-610100-%T1%
)
echo Copying %SOURCE% took %T2%0. mSec
pause

Interesting an extra endline at the end (so text > two blank lines > text) will only strip one causing the the code to be as the poster intends (text>blank line>text)

 

ADVICE FOR USING CCleaner'S REGISTRY INTEGRITY SECTION

DON'T JUST CLEAN EVERYTHING THAT'S CHECKED OFF.

Do your Registry Cleaning in small bits (at the very least Check-mark by Check-mark)

ALWAYS BACKUP THE ENTRY, YOU NEVER KNOW WHAT YOU'LL BREAK IF YOU DON'T.

Support at https://support.ccleaner.com/s/?language=en_US

Pro users file a PRIORITY SUPPORT via email support@ccleaner.com

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.