Geraldziu / MT940-Converter

MIT License
0 stars 0 forks source link

Running it but nothing happens #1

Open Aziona opened 2 years ago

Aziona commented 2 years ago

I am very interested to use this module and I followed the steps but nothing happens. The module seems to be correctly imported.

Get-ChildItem -Path Function:\Process_Ing_MT940 -->

CommandType Name Version Source


Function Process_Ing_MT940 0.0 MT940_Converter

Would you pleae advise?

With kind regards, Gerard

Geraldziu commented 2 years ago

The propper path for installing the module is .\Documents\PowerShell\Modules\\, where module folder and file have to have the same name. For me this is C:\Users\xXx\OneDrive\Documents\PowerShell\Modules\MT940_Converter\MT940_Converter.psm1, because my documents folder is synced with OneDrive. You can always check Get-Module -ListAvailable to see the paths and installed modules. When importing module add -Verbose Import-Module MT940_Converter -Verbose and post the outcome.

If the module is imported properly, then you can run Process_Ing_MT940 function with -filelocation parameter pointing to the MT940 file.

As an alternative you can put the module file anywhere and run Import-Module with the full path to the module file like in the example https://github.com/Geraldziu/MT940-Converter#more-complicated-way. Running it this way will assign a JSON version of the data from the MT940 file the the variable $savelinetovariable

Geraldziu commented 2 years ago

Did it work? Can I close the issue?