A way to add sm2uploader to the context menu of Windows 11. Beauty of this method is in using the native Windows 11 interface and ability to add multiple machines into the menu with simple interface.
Supported every Snapmaker machine.
We will be installing sm2uploader in a way that allows Windows to access it using Environment Variable - “PATH”. A good analogy to explain this will be a desktop link to an app. When instead of spending time to find something in the “Start Menu”, you can create a link to the app on your desktop and start it in the shortest way possible. “Path” will tell Windows where to find sm2uploader, in a fastest way possible. You can read more about “PATH” in this article.
To change system variables you will need Admin rights on your machine. If you are in the environment where you don’t have the admin rights - ask your IT team to follow this guide along.
As a quick and dirty route, after installing sm2uploader, you can skip directly to the last step of adding the sm2uploader to the context menu. I didn’t check this, but seems like no admin rights needed.
- Download the sm2uploader from the GitHub repository. Credit to @macdylan .
- Unpack sm2uploader in a folder. I named my folder
_In_The_Pathso I can remember what is it about in the future. I have quite a few portable apps in this folder.
You can run the sm2uploader at this point to automatically find your machine/s. If it worked for you, skip next step of manual editing the hosts.yaml file.
This step is optional for those who just want to use it via context menu, if you are like me and running sm2uploader as octoprint emulator for uploading gcode directly from slicers (like PrusaSlicer) - this step is mandatory.
- In my case, sm2uploader wasn’t able to autodiscover printers, due to network setup. I had to add Firewall rules to explicitly allow sm2uploader to communicate and edit the hosts.aml file myself.
- For this you need the Token. You can get it from your Luban configuration files (assuming you have luban connected to the printer via WiFi).
- Paste following path to Explorer address bar and hit Enter.
Open file with Notepad or your favorite text editor (not MS Word).
Find your printer in the file, like in the screenshot below
Use this data to fill out the hosts.yaml file - sm2uploader created an empty file when it couldn’t find any printers.
Pay attention to the ID string (right under IP address) - this is how sm2uploader will address your printer by name.
This is an example for Snapmaker 2.0. I don’t have Artisan, not sure how this looks like for Artisan.
I’m attaching my file for template to use - hosts.yaml.zip (254 Bytes)
There is a long way to open next window and a short way. For the short way press “Win+R” on your keyboard to open “Run” window. Paste
And hit Enter. It will ask for admin credentials if necessary and open the following window.
Follow the screenshot below to add sm2uploader to the “Path” variable.
At this point restarting you computer will ensure the changes are recognized by Windows. On to the next step.
This is a bit tricky since in Windows 11 the context menu is a different animal. We have to use a third party app for this. It is free (unlimited infinite trial period), but to support the developer I purchased it for $0.99 in Microsoft Store.
Install the “Custom Context Menu” form the Microsoft Store. It is an opensource app, you can find it at the Github here.
Real life example below
There is a lazy way to fill out all the fields - copy my config and adopt it to your liking. For this, in the Custom Context Menu app, click “Open menus folder” button and copy file attached to this guide in the folder. Then hit update and new item will appear in the list. Don’t forget to adopt it to your needs. sm2uploader.json.zip (343 Bytes)
Now you need to restart explorer for the changes to take effect. You can do this via Task Manager like in this guide, or simply reboot the computer. Task manager is way faster.
If everything done right, and there are no typos, you will see new menu item.
And when you click it - sm2uploader will upload the file.
If you only see sm2uploader window blink - something is wrong, check for typos in the settings. Create menu item with file instead of typing everything in.
If you are on windows 10 and below - there are no issues with right-click menu (new vs old). You can use a few ways to achive it:
- @brent113 made a cool little tool to use direct API to upload files - File Transfer via WiFi - #13 by brent113
- You can create a bat file with following string in it
sm2uploader.exe -fix=0 -host IP_ADDRESS_OF_YOUR_MACHINE "%~1"
replace the IP_ADDRESS, save the file, put it in the same folder with sm2uploader. Simply drag&drop files on this bat file and it will be uploaded to the snapmaker.
- I’ve adopted the kit created by @brent113 for use with sm2uploader on windows 10 and below. It also works on windows 11 but you have to click “Show More Options” to reach new menu item. Here is the archive for this option - BAT files to use with sm2uploader for win10 and below.zip (1.5 KB)