Hi everyone,
I'm trying to remove quotation marks after entering a path in a textbox.
I have a textbox, the user is typing a path to a file containing quotation marks. for example: "C:\Temp\Computer List"
The variable that gets the text is: $MachineListPath = $textbox2.Text.ToString()
I tried these options, but nothing works:
$MachineListPath = $textbox2.Text.ToString() -replace '"', ''
$MachineListPath -replace '"', ''
I want to be able to remove those quotations behind in the code even if I see them in the GUI.
I know I'm missing something or maybe it's not possible?
I'll appreciate your help here.
Link to the texbox image on my app:
https://ibb.co/YbGBDDg
Thanks,
Maor.
I'm trying to remove quotation marks after entering a path in a textbox.
I have a textbox, the user is typing a path to a file containing quotation marks. for example: "C:\Temp\Computer List"
The variable that gets the text is: $MachineListPath = $textbox2.Text.ToString()
I tried these options, but nothing works:
$MachineListPath = $textbox2.Text.ToString() -replace '"', ''
$MachineListPath -replace '"', ''
I want to be able to remove those quotations behind in the code even if I see them in the GUI.
I know I'm missing something or maybe it's not possible?
I'll appreciate your help here.
Link to the texbox image on my app:
https://ibb.co/YbGBDDg
Thanks,
Maor.
Statistics: Posted by zomaor753 — Sun Feb 04, 2024 12:56 am — Replies 2 — Views 224