Search found 101 matches
- Wed Oct 26, 2016 9:00 am
- Forum: PowerShell Studio
- Topic: script doesn't work after packaging
- Replies: 6
- Views: 3398
Re: script doesn't work after packaging
I got it working. For some reason once I packaged the script it was losing the new-psdrive information when I went to use it. I made the location a global variable and recreate the new-psdrive just before I want to use it and I am able to use that location. I don't understand why it changes after it...
- Wed Oct 26, 2016 6:49 am
- Forum: PowerShell Studio
- Topic: script doesn't work after packaging
- Replies: 6
- Views: 3398
Re: script doesn't work after packaging
I changed it to use an elevated manifest and it didn't help. I am almost positive it worked before I upgraded to my current version but I couldn't tell you what version I was using before, I don't skip or miss many version updates.
- Tue Oct 25, 2016 10:50 am
- Forum: PowerShell Studio
- Topic: script doesn't work after packaging
- Replies: 6
- Views: 3398
Re: script doesn't work after packaging
I had to zip the file, I got a invalid filetype when I tried to attach the psbuild file.
- Tue Oct 25, 2016 6:02 am
- Forum: PowerShell Studio
- Topic: script doesn't work after packaging
- Replies: 6
- Views: 3398
script doesn't work after packaging
Product, version and build: version 5.2.129 32 or 64 bit version of product: 64bit Operating system: windows 10 pro 32 or 64 bit OS: 64bit PowerShell Version: 5.0 build 10586 revision 494 I have a single form project that works when I click the run button but once I package the script it stops worki...
- Sun Mar 27, 2016 8:02 pm
- Forum: PowerShell
- Topic: file/folder drag and drop funtionality
- Replies: 1
- Views: 2694
file/folder drag and drop funtionality
I am writing a utility to split text files at a specified line number. I am writing it in a gui script for some of our non-technical staff and I wanted to add a file or folder drag and drop option to the file picker. I seem to remember a blog page on here detailing that some time ago but I can't fin...
- Wed Mar 09, 2016 7:06 am
- Forum: PowerShell Studio
- Topic: Exit Codes for packaged script
- Replies: 1
- Views: 1698
Exit Codes for packaged script
Product, version and build: powershell studio 2016 - version 5.2.116 32 or 64 bit version of product: 64bit Operating system: windows 10 32 or 64 bit OS: 64bit How do I assign exit codes to a packaged script? They appear to be ignored once I package a script. I am testing this by executing the packa...
- Mon Jan 11, 2016 10:01 am
- Forum: PowerShell Studio
- Topic: Run exeutable as elevatd
- Replies: 1
- Views: 2923
Run exeutable as elevatd
Powershell Studio , 4.2.99 64 bit Operating system: windows 8.1 32 or 64 bit OS: 64bit I am trying to compile a script so that it runs elevated. It works with a service on the computers. If I don't provide alternate credentials and run the executable as an administrator it work. If I provide alterna...
- Thu Oct 29, 2015 4:11 am
- Forum: PowerShell GUIs
- Topic: textbox - browse for file problem
- Replies: 10
- Views: 9044
Re: textbox - browse for file problem
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. New-PSDrive -name copy2 -psprovider FileSystem -root $script:copy2 New-PSDrive -name mdf_loc -psprovider FileSystem -root $script:mdf_loc New-PSDrive -...
- Thu Oct 22, 2015 11:23 am
- Forum: PowerShell GUIs
- Topic: textbox - browse for file problem
- Replies: 10
- Views: 9044
Re: textbox - browse for file problem
It is giving me the following error on the copy
Cannot retrieve the dynamic parameters for the cmdlet. SQL server powershell provider error: Path SQLSERVER:\database.mdf does not exist. Please specify a valid path.
Cannot retrieve the dynamic parameters for the cmdlet. SQL server powershell provider error: Path SQLSERVER:\database.mdf does not exist. Please specify a valid path.
- Thu Oct 22, 2015 6:18 am
- Forum: PowerShell GUIs
- Topic: textbox - browse for file problem
- Replies: 10
- Views: 9044
Re: textbox - browse for file problem
This doesn't even work, I am getting the invalid path on the "\\server1\g\loc1_scripts\loc1_data\loc1\attachlog.mdf". But a non-gui script the same code works. move-Item -Path "\\server1\g\loc1_scripts\loc1_data\loc1\attachlog.mdf" -Destination "\\server2\d$\Program Files\Mi...