Browse button: form on RDS server, howto point to local drive?

Ask your PowerShell-related questions, including questions on cmdlet development!
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.
Locked
User avatar
stevens
Posts: 448
Last visit: Wed Jun 23, 2021 8:19 am
Has voted: 1 time

Browse button: form on RDS server, howto point to local drive?

Post by stevens »

To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: PS Studio, latest update
32 or 64 bit version of product: 64
Operating system: W2K15
32 or 64 bit OS: 64

*** Please add details and screenshots as needed below. ***

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

Hi,

I have a Powershell Studio form which I offer via Remote Desktop on a Windows 2016 server (to upload software).
I offer a browse function, that by default points to the drive of the server, whereas it should point to any other location (preferrably the local drive).

$btnBrowse.Enabled = $false
Write-LogText "Getting installation file"
$dlgFileBrowse.Title = "Please select an installation file"


Pease advise,
S

User avatar
brittneyr
Site Admin
Posts: 798
Last visit: Wed Jun 23, 2021 10:36 am
Answers: 16
Been upvoted: 12 times

Re: Browse button: form on RDS server, howto point to local drive?

Post by brittneyr »

[TOPIC MOVED TO WINDOWS POWERSHELL FORUM BY MODERATOR]
Brittney Ryn
SAPIEN Technologies, Inc.

jvierra
Posts: 14841
Last visit: Wed Jun 23, 2021 11:17 am
Answers: 11
Has voted: 3 times
Been upvoted: 10 times

Re: Browse button: form on RDS server, howto point to local drive?

Post by jvierra »

You have to set the initial folder to any location you want.

Locked