-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
81 additions
and
35 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
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
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
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
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
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
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,30 @@ | ||
@echo off | ||
echo Will start the sm2uploader in OctoPrint mode. press Ctrl+C to exit. | ||
|
||
rem set host=-host A350 | ||
set host= | ||
|
||
set /p port=Enter a local port num (default is 8899) | ||
if "%port%"=="" set "port=8899" | ||
if %port% LSS 1024 ( | ||
echo Port number must be greater than 1024 | ||
pause | ||
exit /b 1 | ||
) | ||
|
||
set w64=sm2uploader-win64.exe | ||
set w32=sm2uploader-win32.exe | ||
set cmd= | ||
|
||
where /q %w64% && set "cmd=%w64%" | ||
where /q %w32% && set "cmd=%w32%" | ||
|
||
if "%cmd%"=="" ( | ||
echo Can not find %w64% or %w32% | ||
pause | ||
exit /b 1 | ||
) | ||
|
||
echo %cmd% %host% -octoprint 127.0.0.1:%port% | ||
%cmd% %host% -octoprint 127.0.0.1:%port% | ||
pause |
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