Comments (9)
Hi @snekya,
below you will find the command line options for Pronterface and how to use them with Windows:
Usage:
pronterface [OPTIONS] [FILE]
Options:
-h, --help ( Print this help message and exit )
-V, --version ( Print program's version number and exit )
-v, --verbose ( Increase verbosity )
-a, --autoconnect ( Automatically try to connect to printer on startup )
-c, --conf, --config=CONFIG_FILE ( Load this file on startup instead of .pronsolerc; you may chain config files, if so settings auto-save will use the last specified file )
-e, --execute=COMMAND ( Executes command after configuration/.pronsolerc is loaded; macros/settings from these commands are not autosaved")
pronterface [OPTIONS] [FILE]
in your case, if your config is in folder Desktop and the config file name is printer2:
Pronterface.exe -c "c:\Users\snekya\Desktop\printer2.ini"
or using the command line version
Pronsole.exe -c "c:\Users\snekya\Desktop\printer2.ini"
Copy an existing config file (printrunconf.ini) and rename it to your needs. You need to add the complete path and file name and put it in quotation marks as shown above.
Same for running from source (Pronterface.py / Pronsole.py )
from printrun.
Saved as a batch file. Great success. I learn something new every day. Thank you kindly!
from printrun.
Maybe one additional example, you can do in Windows also things like this:
%userprofile%\Downloads\pronterface-test\Pronterface.exe -c "%userprofile%\Downloads\printer2.ini"
This way you don't need to write/use the complete absolute path for an active user account.
from printrun.
Thank you very much for taking the time to help me! I value your time and I don't want to waste your time. I'm still trying to figure out how to get this to work. Pardon my lack of knowledge. I am trying to understand how to get it to run from command line. I apologize. Someone with more knowledge of this topic would probably fully understand these instructions. Am I changing the name of pronterface.py? Or am I entering this path into the pronterface.py file somewhere? I really appreciate your help.
from printrun.
OK! I got it to work with the second method you showed me. So I assume I can save that as a shortcut path and use that?
from printrun.
I have the correct path saved and I can type in that in explorer and it works with the config correctly. I am trying to now figure out how to save it as a shortcut of some kind.
from printrun.
I really appreciate your help! I am now running two different instances with separate configs and they are saving and loading correctly. If you have any tips on how to make these shortcuts I appreciate it. But, problem solved! thank you again.
from printrun.
Glad that you find a solution that works for you. It was too late for me (around 3 o'clock in the morning in my country). :)
Regarding shortcuts, You can create a desktop shortcut and then modify it in the way you need it. Here is an example how to run the command line version Pronsole.exe in a windows terminal. The screenshot is in German but I'm sure you find the same view in your language as well.
This is documented here: https://github.com/kliment/Printrun?tab=readme-ov-file#windows (look for ...Running Pronsole works best by running it in WindowsTerminal. ) You may want to install Windows Terminal if you don't have it already installed.
First create a desktop shortcut by [mouse right click] on a file like pronsole.exe. Then edit the Desktop shortcut by right clicking and select [Properties], choose the tab [Shortcut] and modify the the field [Target] and [Start in:]
Target (Ziel):
%LocalAppData%\Microsoft\WindowsApps\wt.exe --title Pronsole %USERPROFILE%\Downloads\pronterface-test\Pronsole.exe
Start in (Ausführen in:):
%USERPROFILE%\Downloads\pronterface-test
In this example I call windows Terminal with %LocalAppData%\Microsoft\WindowsApps\wt.exe
, name the shortcut as Pronsole with --title Pronsole
and run pronsole with %USERPROFILE%\Downloads\pronterface-test\Pronsole.exe
. And when you extend this with your individual config file, like -c "%userprofile%\Downloads\printer2.ini"
you will have what you need. In the same way you can start an executable binary file or Pronterface from code.
A lot of possible way's running Pronterface or Pronsole.
from printrun.
Thank you so much for your assistance and thoughtful reply. I will try this as well. The batch file worked great but I will do this as well to understand this better. I thank you once again for the thorough explanations and for taking the time to assist me with my issue.
from printrun.
Related Issues (20)
- Moved the custom buttons over too far, and now i have broke the whole program HOT 7
- Cannot download on MAC HOT 8
- Pause from G-Code HOT 3
- Is there a Pause Flag on RPC server? HOT 7
- Plater shortcuts not working and missing tips
- printrun HOT 1
- AttributeError: 'NoneType' object has no attribute 'write HOT 3
- Do not disable extruder on exit HOT 8
- faild to execute script pronterface HOT 4
- what's the game? HOT 12
- Appdirs is now dead upstream
- Problems if try to print a file, just after print the previous one HOT 6
- my pronterface doesnt want to open im about to go insane HOT 3
- CI actions not working as expected HOT 22
- Translation files for macOS HOT 3
- 2.1.0 crash during print on macos 14.4 HOT 13
- Error of 2D viewer when loading gcode files with G2/G3 arcs HOT 3
- Bacup to earlier layer after fail HOT 3
- App crashes when open on multiple users (macos) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from printrun.