Skip to content

Commit

Permalink
Create Run.bat for EasyEDA (#140)
Browse files Browse the repository at this point in the history
Create Run.bat for EasyEDA

dont need to open cmd , just double click this batch file and drag the EasyEDA source file
  • Loading branch information
scarrrr316 authored Apr 11, 2020
1 parent ad427d0 commit f346175
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions InteractiveHtmlBom/Run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@echo off

echo -------------------------------------------------------------------------------------------------------------------
echo -------------------------------------------------------------------------------------------------------------------
echo -
echo Thank you for using InteractiveHtmlBom
echo https://github.com/openscopeproject/InteractiveHtmlBom
echo Bat file by Scarrrr0725
echo -
echo --------------------------------------------------------------------------------------------------------------------
echo --------------------------------------------------------------------------------------------------------------------

::delete --show-dialog after frist start up and setting
set option=--show-dialog

set FilePath=%~dp0
set pyFilePath=%FilePath%generate_interactive_bom.py

:convert
set /p pathofEDASourceFile=Please Drag the EasyEDA PCB source file here :

echo Converting. . . . . . . . . .
python %pyFilePath% %pathofEDASourceFile% %option%

echo -------------------------------------------------------------------------------------------------------------------
echo -------------------------------------------------------------------------------------------------------------------
echo -
echo EDA source file is converted to bom successfully!
echo -
echo -------------------------------------------------------------------------------------------------------------------
echo -------------------------------------------------------------------------------------------------------------------

CHOICE /C YN /N /M "Do you want to convert another file? [Y/N"
if errorlevel 2 exit
if errorlevel 1 goto convert

0 comments on commit f346175

Please sign in to comment.