Obsolete!!! Fucking old examples...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

27 lines
633 B

@echo off
rem ****************************
rem Ñöåíàðèé: lastinpath.bat
rem Äàòà ñîçäàíèÿ 7/15/2008
rem Ïîñëåäíåå èçìåíåíèå: 7/15/2008
rem Àâòîð: Øàøêèí Í. Ñ. kolan klmn
rem E-mail: xalava@bk.ru
rem ****************************
rem Îïèñàíèå: çàïóñê
rem call lastinpath VarName Ïóòü
rem Ïîìåùàåò èìÿ ïîñëå ïîñëåäíåãî
rem \ â ïóòè â ïåðåìåííóþ VarName.
rem Íàïðèìåð,
rem call lastinpath KDE c:\home\Ìàñÿíÿ\áóõàåì\äîìà
rem çàíåñ¸ò "áóõàåì" â KDE.
rem ****************************
rem Ôàéëû: òðåáóåò lastarg.bat
rem ****************************
:shift1
if not '%3'=='' (
shift /2
goto :shift1
)
set %1=%2