Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Extensions\GenerateHttpUrl.WinSCPextension.ps1 in WinSCP installation folder.
So typically:
C:\Program Files (x86)\WinSCP\Extensions\GenerateHttpUrl.WinSCPextension.ps1
Though the file gets replaced on each upgrade.
So ideally, you create a copy of the file in your Documents folders and install it to WinSCP.
https://winscp.net/eng/docs/ui_pref_commands#extensions
onapps

I am also getting this error recently.
Can you please tell me in which file should I change SetText to SetDataObject?
Thanks.
12Centuries

Re: 0x800401D0 Error when using GenerateHttpUrl.WinSCPextension.ps1

Restarting has no effect. I have no software the interacts with the clipboard. I stopped any programs or services that could have potentially interfered, such as VNC and AutoHotKey.

I have this SetDataObject workaround that works for me, but I thought I should let you know.
martin

Re: 0x800401D0 Error when using GenerateHttpUrl.WinSCPextension.ps1

Thanks for your report. Does restart help to make the original version working? Do you have any software running/installed that may interfere with the clipboard?
12Centuries

0x800401D0 Error when using GenerateHttpUrl.WinSCPextension.ps1

I am attempting to use GenerateHttpUrl.WinSCPextension.ps1 for the first time. It keeps generating the following error:
Exception calling "SetText" with "1" argument(s): "OpenClipboard Failed (Exception from HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN))"


I changed line 112 from:
[Windows.Clipboard]::SetText($result)

to:
[Windows.Clipboard]::SetDataObject($result)

and it seems to work now. I wasn't able to find any other reference to this problem, but I thought you should know about it.

This is on Windows 7, WinSCP 5.17.10 (build 11087)