diff --git a/standalone/nutrimorph-standalone-win.zip b/nutrimorph-standalone-win.zip similarity index 100% rename from standalone/nutrimorph-standalone-win.zip rename to nutrimorph-standalone-win.zip diff --git a/standalone/NutriMorph-4-NT.zip b/standalone/NutriMorph-4-NT.zip deleted file mode 100644 index b53f969a74e3ffd25ddcbcf6ccc81e1eef219237..0000000000000000000000000000000000000000 Binary files a/standalone/NutriMorph-4-NT.zip and /dev/null differ diff --git a/standalone/nutrimorph.bat b/standalone/nutrimorph.bat index 4d6af762836e4098f01455a6a10653a8fa073c0e..457e2078e7c48f0a619ec3babc924284768a4f7f 100644 --- a/standalone/nutrimorph.bat +++ b/standalone/nutrimorph.bat @@ -1,4 +1,5 @@ -<# : chooser.bat +<# : nutrimorph.bat +:: Inspired from (see below) :: address/from/source: https://exceptionshub.com/file-folder-chooser-dialog-from-a-windows-batch-script.html (Update 2016.3.20) :: launches a File... Open sort of file chooser and outputs choice(s) to the console :: https://stackoverflow.com/a/15885133/1683264 @@ -15,8 +16,8 @@ if ERRORLEVEL 1 ( exit ) -for /f "delims=" %%I in ('powershell -noprofile "iex (${%~f0} | out-string)"') do ( - .\main\main.exe %%~I +for /f "delims=" %%prmfile in ('powershell -noprofile "iex (${%~f0} | out-string)"') do ( + .\nutrimorph\nutrimorph.exe "%%~prmfile" ) echo [Press "Enter" to exit] pause > nul @@ -25,10 +26,11 @@ goto :EOF : end Batch portion / begin PowerShell hybrid chimera #> Add-Type -AssemblyName System.Windows.Forms -$f = new-object Windows.Forms.OpenFileDialog -$f.InitialDirectory = pwd -$f.Filter = "PY Files (*.py)|*.py" -$f.ShowHelp = $true -$f.Multiselect = $false -[void]$f.ShowDialog() -if ($f.Multiselect) { $f.FileNames } else { $f.FileName } +$dialog = new-object Windows.Forms.OpenFileDialog +$dialog.InitialDirectory = pwd +$dialog.Filter = "PY Files (*.py)|*.py" +$dialog.ShowHelp = $true +$dialog.Multiselect = $false +[void]$dialog.ShowDialog() +$dialog.FileName +:: if ($dialog.Multiselect) { $dialog.FileNames } else { $dialog.FileName }