- @echo off
- cd..\..
- cd /d f:\.&type nul>1.txt
- @echo off
- set str=12345dw5vti7dfg3ds120ds437dw02532123asethep09s3656754dc汉d36国33s人中d26789
- echo var=%str:~0,5%
- echo %str:~0,5%>f:\1.txt
- pause
- @echo off
- cd..\..
- cd /d f:\.&type nul>2.txt
- @echo off
- set str=12345dw5vti7dfg3ds120ds437dw02532123asethep09s3656754dc汉d36国33s人中d26789
- set var=%str:~-4%
- echo %str:~-4%
- echo %str:~-4%>>f:\2.txt
-
- pause
- @echo off
- cd..\..
- cd /d f:\.&type nul>3.txt&type 1.txt>3.txt%type 2.txt>3.txt
- start "" f:\3.txt
- pause
复制代码
|