youtuber Posted August 4, 2019 Share Posted August 4, 2019 (edited) Friends want to add the same. Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\DownloadManager] "LocalPathW"=hex(0):44,00,3a,00,5c,00,44,00,6f,00,77,00,6e,00,6c,00,6f,00,61,\ 00,64,00,00,00 I tried every way, do you have any idea? I've tried all the codes http://prntscr.com/oo39pa #RequireAdmin #include <String.au3> ;~ $sString1 = 'C:\Users\USER\Desktop' $sString = 'D:\Download' ;RegWrite('HKCU\Software\DownloadManager', 'LocalPathW', 'REG_BINARY', StringToBinary('D:\Download')) ;~ RegWrite('HKCU\Software\DownloadManager', 'LocalPathW', 'REG_BINARY', Binary('0x' & $sString)) ;or ;~ RegWrite('HKCU\Software\DownloadManager', 'LocalPathW', 'REG_BINARY', $sString) ;or $StConvertHex = _StringToHex("D:\Download") ;~ RegWrite("HKCU\Software\DownloadManager", "LocalPathW", "REG_BINARY", $StConvertHex) ;~ RegWrite("HKCU\Software\DownloadManager", "LocalPathW", "REG_BINARY", "0x" & $StConvertHex) ;or ;~ RegWrite("HKCU\Software\DownloadManager", "LocalPathW", "REG_MULTI_SZ", "0x" & $StConvertHex) RegWrite('HKCU\Software\DownloadManager', 'LocalPathW', 'REG_BINARY', Binary('0x' & $StConvertHex)) Edited August 4, 2019 by youtuber Link to comment Share on other sites More sharing options...
Marc Posted August 4, 2019 Share Posted August 4, 2019 (edited) According to this thread, this should be what you want: Regwrite ('HKCU\Software\DownloadManager', 'LocalPathW', 'REG_BINARY', '0x44003a005c0044006f0077006e006c006f00610064000000') Edited August 4, 2019 by Marc youtuber 1 Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL) Link to comment Share on other sites More sharing options...
Nine Posted August 4, 2019 Share Posted August 4, 2019 (edited) Here how to convert string to fit registry binary write : #RequireAdmin #include <Constants.au3> #include <String.au3> Local $sHex = _StringToHex("D:\Download") Local $sFinal = "0x" For $i = 1 to StringLen ($sHex)/2 $sFinal &= StringMid ($sHex,$i*2-1,2) & "00" Next MsgBox ($MB_SYSTEMMODAL,"",$sFinal) Regwrite ('HKCU\Software\DownloadManager', 'LocalPathW', 'REG_BINARY', $sFinal) Edited August 4, 2019 by Nine youtuber 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Subz Posted August 4, 2019 Share Posted August 4, 2019 Or Local $sBinary = StringToBinary("D:\Download", 2) MsgBox(4096, "", BinaryToString($sBinary, 2) & " = " & $sBinary & @CRLF) RegWrite("HKCU\Software\Download Manager", "LocalPathW", "REG_BINARY", $sBinary) youtuber 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now