-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
ad427d0
commit f346175
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |