Support Forums

Search found 97 matches

by bn2hunt
Sun Mar 27, 2016 8:02 pm
Forum: Windows PowerShell
Topic: file/folder drag and drop funtionality
Replies: 1
Views: 975

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...
by bn2hunt
Wed Mar 09, 2016 8:06 am
Forum: PowerShell Studio
Topic: Exit Codes for packaged script
Replies: 1
Views: 341

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...
by bn2hunt
Mon Jan 11, 2016 11:01 am
Forum: PowerShell Studio
Topic: Run exeutable as elevatd
Replies: 1
Views: 1020

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...
by bn2hunt
Thu Oct 29, 2015 4:11 am
Forum: PowerShell GUIs
Topic: textbox - browse for file problem
Replies: 10
Views: 2029

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 -...
by bn2hunt
Thu Oct 22, 2015 11:23 am
Forum: PowerShell GUIs
Topic: textbox - browse for file problem
Replies: 10
Views: 2029

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.
by bn2hunt
Thu Oct 22, 2015 6:18 am
Forum: PowerShell GUIs
Topic: textbox - browse for file problem
Replies: 10
Views: 2029

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...
by bn2hunt
Thu Oct 22, 2015 6:13 am
Forum: PowerShell GUIs
Topic: textbox - browse for file problem
Replies: 10
Views: 2029

Re: textbox - browse for file problem

The move-item in this code is the specific code where I am getting the error. It doesn't seem to matter if I hard code the path and destination in a variable or if I use the location I get from the browse function. function copydb { if (Test-Path $mdffiles) { Write-Host "file already exists on ...
by bn2hunt
Thu Oct 22, 2015 5:41 am
Forum: PowerShell GUIs
Topic: textbox - browse for file problem
Replies: 10
Views: 2029

Re: textbox - browse for file problem

Sorry, I was sanitizing server names. Her is the code $MainForm_Load={ #TODO: Initialize Form Controls here load_sql_users load_sql_groups } #region Control Helper Functions function Load-DataGridView { <# .SYNOPSIS This functions helps you load items into a DataGridView. .DESCRIPTION Use this funct...
by bn2hunt
Thu Oct 22, 2015 5:27 am
Forum: PowerShell GUIs
Topic: textbox - browse for file problem
Replies: 10
Views: 2029

Re: textbox - browse for file problem(update)

I am getting the same error if I hard code the path into the variable. If I move the code I am using, to a stand alone script it works as anticipated.
by bn2hunt
Thu Oct 22, 2015 5:19 am
Forum: PowerShell GUIs
Topic: textbox - browse for file problem
Replies: 10
Views: 2029

textbox - browse for file problem

I am using 64bit powershell studio 2015 version 4.2.95 64bit windows 8 I am able to browse for a file and put that filename and path into a datagrid. The problem I am having is when I try to access the file that I picked. I keep getting an invalid path error when I try to copy/move the file. And tes...

Go to advanced search