Skip to content

Commit f346175

Browse files
authored
Create Run.bat for EasyEDA (#140)
Create Run.bat for EasyEDA dont need to open cmd , just double click this batch file and drag the EasyEDA source file
1 parent ad427d0 commit f346175

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

InteractiveHtmlBom/Run.bat

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@echo off
2+
3+
echo -------------------------------------------------------------------------------------------------------------------
4+
echo -------------------------------------------------------------------------------------------------------------------
5+
echo -
6+
echo Thank you for using InteractiveHtmlBom
7+
echo https://github.com/openscopeproject/InteractiveHtmlBom
8+
echo Bat file by Scarrrr0725
9+
echo -
10+
echo --------------------------------------------------------------------------------------------------------------------
11+
echo --------------------------------------------------------------------------------------------------------------------
12+
13+
::delete --show-dialog after frist start up and setting
14+
set option=--show-dialog
15+
16+
set FilePath=%~dp0
17+
set pyFilePath=%FilePath%generate_interactive_bom.py
18+
19+
:convert
20+
set /p pathofEDASourceFile=Please Drag the EasyEDA PCB source file here :
21+
22+
echo Converting. . . . . . . . . .
23+
python %pyFilePath% %pathofEDASourceFile% %option%
24+
25+
echo -------------------------------------------------------------------------------------------------------------------
26+
echo -------------------------------------------------------------------------------------------------------------------
27+
echo -
28+
echo EDA source file is converted to bom successfully!
29+
echo -
30+
echo -------------------------------------------------------------------------------------------------------------------
31+
echo -------------------------------------------------------------------------------------------------------------------
32+
33+
CHOICE /C YN /N /M "Do you want to convert another file? [Y/N"
34+
if errorlevel 2 exit
35+
if errorlevel 1 goto convert

0 commit comments

Comments
 (0)