Skip to content

Desktop Shortcut

Sebastian Schäfer edited this page Apr 5, 2023 · 3 revisions

If you would like to start TopasGraphSim without the use of the command line, you can achieve this in the following manner:

1. Creating a Batch File

Open Notepad, and write the following code:

<path-to-your-python-interpreter> -m topasgraphsim

Then, save the file as [..]/topasgraphsim.bat. In Notepad, make sure to select "All" unde the data types.

2. Create a VBScript File

Open notepad again, and write the following code:

Set WshShell = CreateObject("WScript.Shell") 
WshShell.Run chr(34) & "[..]/topasgraphsim.bat" & Chr(34), 0
Set WshShell = Nothing

Then, save the file as [..]/topasgraphsim.vbs. Again, make sure to select "All" unde the data types.

3. Create a Shortcut

Right click the newly created .vbs file and create a shortcut. You can also change the icon of the shortcut to the TopasGraphSim icon. It is located in the package data of TopasGraphSim under src/resources/images/icon.ico.

Finally, move the shortcut to your desktop!

Clone this wiki locally