草.刚刚复制这个(这个没有副作用!)
#!/bin/sh
goto start
echo "cant run in linux"
echo ""
read -p "exit"
exit 0
:start
cls
@echo off
setlocal enabledelayedexpansion
cmd /c DOSKEY
title VIEWFILE-%~dp0
REM SOMETHING SETING
set path=%path%;%~dp0\
set vln=20
set vlp=1
set vpg=0
set /a vpg_long=%vln% / 6
if "%1"=="" set indir=%cd%
if "%vpg_long%"=="0" set /a vpg_long=1
:loop
cd /d "%indir%"
set dl=0
for /d %%f in (*) do (set /a dl+=1& set vdl_!dl!=DIR^|%%~af^|%%~tf^|%%f )
for %%f in (*) do (set /a dl+=1& set vdl_!dl!= ^|%%~af^|%%~tf^|%%f )
set vdl_-2= Now Top
:ptn
cls
echo %cd%
echo.___________________________________________________________________
for /l %%i in (1,1,%vln%) do (
set /a dn=%%i+!vpg!
call :ptf
)
echo ___^|___________^|________________^|__________________________________
echo Object:%dl% ^| Help:/Help ^|%msg%
echo.
set msg=
set /p act=:
set act=%act:"=%
FOR /F "tokens=1-9 delims= " %%1 in ('echo %act%') do (
set act_1=%%1
set act_2=%%2
set act_3=%%3
set act_4=%%4
set act_5=%%5
set act_6=%%6
set act_7=%%7
set act_8=%%8
set act_9=%%9
)
echo %act_1% ^| %act_2% %act_3% %act_4% %act_5% %act_6% %act_7% %act_8% %act_9%
if /i "%act_1:~0,1%"=="/" (
call :%act_1:~1%
) else (
if not exist "!act!" set msg="!act!" File not exist &goto ptn
)
set indir=%act%
set vpg=0
:refk
for /l %%c in (1,1,%dl%) do set vdl_%%c=
goto loop
::#########################################################################################################::
::#########################################################################################################::
:cmdmd
cmd /c "DOSKEY&cmd"
goto ptn
:crf
md "%act_2%"
set msg=Created "%act_2%"
goto :eof
:ref
set msg=Reflash
goto refk
:rm
if /i "%act_2%"=="del" (
del /f /s /q "%act_3%"
rmdir /s /q "%act_3%"
set msg=Deleted "%act_3%"
)
if /i "%act_2%"=="rec" (
recycle "%act_3%"
set msg="%act_3%" Move in Recycle
)
goto :eof
:help
::这不是很酷嘛 =w=
set hf=%~dp0HF-%random:~1,1%%random:~1,1%%random:~1,1%%random:~1,1%%random:~1,1%%random:~1,1%%random:~1,1%%random:~1,1%.hp
echo /a page up >%hf%
echo /cmdmd Cmd>>%hf%
echo /crf Create Floder>>%hf%
echo /edit edit file>>%hf%
echo /help help>>%hf%
echo /ref reflash>>%hf%
echo /rm del [file] delete file>>%hf%
echo /rm rec [file] move recycle>>%hf%
echo /v page down>>%hf%
echo.>>%hf%
echo.>>%hf%
echo [F7] History>>%hf%
set act_2=%hf%
call :edit
set msg=Get help later
goto ptn
:edit
nano.exe %act_2%
set msg=Edit "%act_2%"
goto :eof
:a
set /a vpg+=%vpg_long%
goto ptn
:v
set /a vpg-=%vpg_long%
goto ptn
:ptf
echo.!vdl_%dn%!
goto :eof
:debug
:dh
set /p dgm=DG:%cd%_
set indir=%cd%
%dgm%
set dgm=
goto dh
goto :eof