Skip to content

Commit

Permalink
Merge pull request #3 from GMSyrimis/windows-batch-file
Browse files Browse the repository at this point in the history
added batch script for easy drag and drop experience
  • Loading branch information
majimboo authored Aug 10, 2017
2 parents 40b72f1 + 51399d1 commit 55c6944
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions windows/extract.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@echo off
set filepath=%1
echo %filepath%
py F:\Downloads\mviewer-master\mviewer-master\extract_mview.py %filepath%
set dir=%filepath:~0,-6%
echo %dir%
pause
py F:\Downloads\mviewer-master\mviewer-master\extract_model.py %dir%
pause null
14 changes: 14 additions & 0 deletions windows/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#Windows Batch Script
I wrote this batch script to avoid typing in the same commands over and over. I wanted a simple, drag and drop solution.

##Setting up the batch script

There are 2 steps to getting this batch script ready for your environment:

1. Install Python 3.6.1 or later and make sure to check the "Add Python to your PATH" during the installation wizard. If you've already installed it and did not add Python to your PATH follow the instructions [here](https://superuser.com/questions/143119/how-to-add-python-to-the-windows-path) to set that up. The end goal is to have access to python from your command prompt by calling `py`
2. Edit the batch file and specify the path to the Python scripts `extract_mview.py` and `extract_model.py`

##Using the batch script
Once you've downloaded and edited the batch script to suit your environment there's only one step left.

1. Drag the `.mview` file onto the batch script and watch the magic happen, it will prompt you to press any key to continue between steps, if you want an even faster experience you can remove the calls to `pause` in the batch script

0 comments on commit 55c6944

Please sign in to comment.