home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 March
/
PCWorld_2004-03_cd.bin
/
Software
/
vyzkuste
/
tipyprowin
/
soft3_2004b.exe
/
CMDStart.bat
< prev
next >
Wrap
DOS Batch File
|
2004-01-16
|
3KB
|
71 lines
@echo off
cls
echo.
Prompt [$T$H$H$H] $P$G$_
set pd=0
title %Computername%/%Username% - %DATE% [%pd%]
doskey /insert
doskey n=notepad.exe $*
doskey ed=edit.com /75 $*
doskey dir=dir /a /ogen /p $*
doskey --=attrib -r -s -h -a *.*
doskey w=set /a pd=pd + 1 $T color 4F $T title %Computername%/%username% - %DATE% [%%pd%%] $T pushd %windir% $T cls
doskey s=set /a pd=pd + 1 $T color 4F $T title %Computername%/%username% - %DATE% [%%pd%%] $T pushd %windir%\system32 $T cls
doskey d=set /a pd=pd + 1 $T color 2F $T title %Computername%/%username% - %DATE% [%%pd%%] $T pushd "%userprofile%\plocha" $T cls
doskey home=set /a pd=pd + 1 $T color 2F $T title %Computername%/%username% - %DATE% [%%pd%%] $T pushd "%HOMEPATH%" $T cls
doskey cd=cd /D $*
doskey \= cd \
doskey +=set /a pd=pd + 1 $T color 2F $T title %Computername%/%username% - %DATE% [%%pd%%] $T pushd $* $T cls
doskey -=if %%pd%% GTR 0 set /a pd=pd - 1 $T if %%pd%% EQU 0 color F1 $T title %Computername%/%username% - %DATE% [%%pd%%] $T popd $T cls
doskey ex=kill.exe /F explorer.exe$T color 0F $T pause $T explorer.exe $T color F4 $T cls
doskey .=explorer.exe /n,.
doskey select=for /F "delims= usebackq" %%i IN (`dir /s /b /a $*`) DO explorer.exe /select,%%i
doskey xd=for /F "delims= usebackq" %%i IN (`dir /s /b /ad $*`) DO set /a pd=pd + 1 $T for /F "delims= usebackq" %%i IN (`dir /s /b /ad $*`) DO pushd %%i $T title %Computername%/%username% - %DATE% [%%pd%%] $T if %%pd%% GTR 0 color 2F $T cls
doskey mcd=md $* $T cd $*
doskey ?=help $* $G %temp%\help.txt $T start edit.com %temp%\help.txt
doskey e=exit
doskey cls=color F1 $T cls
doskey cs=notepad.exe G:\Windows\cmdstart.bat
doskey m=doskey /m
if (%1)==() goto Over
set $="%~F1"
echo Attributy: %~a1|find "d" > NUL
if %errorlevel%==0 goto Directory
cd /D %~DP1
if not %errorlevel%==0 cls && echo.
echo CESTA: %~F1
echo VARIABLE: %%$%%
echo VELIKOST: %~Z1
echo ATRIBUTY: %~A1
echo VYTVORENO: %~T1
echo. && echo Zmeneno
dir /a /tw %1|find "%~N1"
echo. && echo Naposledy zpristupneno
dir /a /ta %1|find "%~N1"
if (%~X1)==() goto Over
echo.
echo %~NX1 - TYP SOUBORU:
assoc %~x1
for /F "delims== usebackq tokens=2" %%i IN (`assoc %~x1`) DO set Typ=%%i
if not (%typ%)==() ftype %typ%
goto Over
:Directory
cd /D %~F1
if not %errorlevel%==0 cls && echo.
echo P O D S L O Z K A
dir /ad /b %1
echo. && echo S O U B O R Y
dir /a-d /ogen /b %1
dir /a %1| find "Bytes"
echo.
echo CESTA: %~F1
echo VARIABLE: %%$%%
echo ATRIBUTY: %~A1
echo TYP SOUBORU: Slozka
echo VYTVORENO: %~T1
:Over
color F1