File: make_timer_bat.bat

package info (click to toggle)
python-pyshortcuts 1.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,652 kB
  • sloc: python: 1,286; makefile: 43
file content (13 lines) | stat: -rw-r--r-- 501 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
@set _prompt=%prompt%
@prompt $g$s
@echo.
@echo --- Creating timer.bat with current python.exe path
python -c "import sys;print(r'{} %%~dp0\timer.py'.format(sys.executable))" > ..\examples\console_scripts\timer.bat
@echo.
@echo --- Creating shortcut to timer.bat
call pyshortcut -n "Timer bat" -i ..\examples\icons\stopwatch.ico -f Shortcuts ..\examples\console_scripts\timer.bat 
@echo.
@echo --- Look in Startmenu and Desktop\Shortcuts for launcher link
@echo.
@pause
@prompt=%_prompt%