Running perl and slic3r from a single shortcut (batch file editing)
June 27, 2012 12:35PM
--This is a way to create a shortcut that automatically runs perl and slic3r.
--This is the content of citrusterm.bat. Edit it in notepad or the non-windows equivalents.

---------------------------------------------------------------------------------

@echo off
call C:\dev\CitrusPerlforSlic3rPerl\bin\citrusvars.bat

Title CitrusPerl 5.14.2.1 x86 ( wxWidgets 2.9.3 )

cd C:\dev\CitrusPerlforSlic3rPerl

--(Here put the path to slic3r.pl), eg.

c:
cd slic3r
perl slic3r.pl

cmd /K

---------------------------------------------------------------------------------

--Then save the file.
--Double clicking on citrusterm.bat (or a desktop shortcut of this) will then run perl and slic3r.
--You can also make it run build.pl before running slic3r by putting "perl build.pl" between "cd slic3r" and "perl slic3r.pl".
Re: Running perl and slic3r from a single shortcut (batch file editing)
June 29, 2012 10:38AM
Or, you can just use wperl.exe. It gets installed when you install Perl. Make the target field in your shortcut look something like the following, and you're done.

"C:\dev\CitrusPerl\x64\5-14\bin\wperl.exe C:\Users\kc\Documents\3D_Printer\Slic3r\slic3r.pl"
Sorry, only registered users may post in this forum.

Click here to login