61
Post New Requests Here / Re: IDEA: Automagic Digital Photo Manager
« on: October 27, 2018, 04:23 PM »#region gui events {
$Button1.Add_Click({
$objForm = New-Object System.Windows.Forms.FolderBrowserDialog
$objForm.Description = "Destination folder"
$objForm.SelectedPath = [System.Environment+SpecialFolder]'MyComputer'
$objForm.ShowNewFolderButton = $false
$result = $objForm.ShowDialog()
if ($result -eq "OK") {
$TextBox1.Text = $objForm.SelectedPath
} else {
$TextBox1.Text = ""
}
})-4wd (October 23, 2018, 05:36 PM)
Just one quick question: if I wanted to modify this bit to a specific root destination folder (eg c:\users\fred\pictures\photos) would I just change this line
$objForm.SelectedPath = [System.Environment+SpecialFolder]'MyComputer'
or is it more complicated than that? (I really want to make it as simple as I can for him!)