textbox - browse for file problem

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 8 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
bn2hunt
Posts: 101
Last visit: Mon Aug 02, 2021 12:04 pm

Re: textbox - browse for file problem

Post by bn2hunt »

Changed all of my folder locations to use New-PSDRIVE and changed the variable holding the location to script wide variables and it started to work.

Code: Select all

New-PSDrive -name copy2 -psprovider FileSystem -root $script:copy2
New-PSDrive -name mdf_loc -psprovider FileSystem -root $script:mdf_loc
New-PSDrive -name log_loc -psprovider FileSystem -root $script:ldf_loc
New-PSDrive -name copyfrom -psprovider FileSystem -root $copyfrom
This topic is 8 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked