Delete Remote Connection Records and Run Box Records – Batch File Windows 11 as Example @echo off REM Delete remote desktop connection history in registry reg delete HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default /va /f reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client\Default /va /f reg delete HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers /f REM Add registry key reg add HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers REM Delete Default.rdp file in Documents folder del /ah %homepath%\documents\default.rdp REM Delete run box history reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /va /f del /Q /F %APPDATA%\Microsoft\Windows\Recent\* echo. %APPDATA%\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt REM Delete contents of a certain folder @echo off set folderPath=C:\123\123 if exist %folderPath% ( rmdir /s /q %folderPath% echo folder ok ) else ( echo folder none ) REM Delete contents of a certain folder @echo off set folderPath=C:\Users\Administrator\AppData\Local\Microsoft\Terminal Server Client if exist %folderPath% ( rmdir /s /q %folderPath% echo folder ok ) else ( echo folder none ) REM Delete Clear system events PowerShell -ExecutionPolicy Bypass -File C:\Users\Administrator\Desktop\ClearEventLogs.ps1 echo all ok pause...
Share three free cryptocurrency API interfaces for those who need them: – https://api.huobi.pro/market/history/kline?symbol=ethusdt&period=15min&size=20 – https://min-api.cryptocompare.com/data/v2/histohour?fsym=ETH&tsym=USDT&limit=20&aggregate=15 – https://api.binance.com/api/v3/klines?symbol=ETHUSDT&interval=15m&limit=20...
When registering a user in Weipan ThinkPHP, there is no response, and a 500 error is displayed upon redirect. Check the domain field in the database user table, or other fields, and change them to allow null and set the length to 128....
Windows Server 2016 Installing .NET 3.5 Error – Source File Not Found Solution Installation method: Download NetFx3.cab and place it in the C:\Windows folder (C:\Windows) Click Start, find Windows PowerShell, right-click and run as administrator, then enter the following command: dism.exe /online /add-package /packagepath:C:\WINDOWS\netfx3.cab Online sources mention copying the sxs file from the sources folder of Windows Server 2016. I found it too complicated and tried to open it, but got an error – c:\windows\netfx3.cab Error: 0x80070003...
Windows 2016 server fails to switch to Chinese, displaying “connect to the internet to check for language packs” 1. Download the Windows Server 2016 language pack. Enter the URL: https://download.csdn.net/download/tony_vip/12230547 2. On the server, press the Win+R key combination to open the Run utility, enter lpksetup and press Enter. 3. Select “Install display languages” Content source: https://blog.csdn.net/tony_vip/article/details/104683611...
In Windows 11, you can set up automatic clearing of Remote Desktop connection records on startup by following these steps: Open the Run dialog box. You can press the Win + R shortcut key to open the Run dialog box. Type regedit and click OK to open the Registry Editor. In the Registry Editor, navigate to the following path: HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client In the Terminal Server Client folder, right-click on a blank area and select New – DWORD (32-bit) Value to create a new DWORD entry. Name the newly created DWORD entry fDenyTSConnections. Right-click on the fDenyTSConnections entry and select Modify. Set the Value data to 1 and click OK. Close the Registry Editor. Now, each time you start your computer, Windows 11 will automatically clear the Remote Desktop connection records. Please note that this setting only clears Remote Desktop connection records established during the startup process and will not affect any currently established connections....
Sina Stock Real-time Data hq.sinajs.cn Interface Repair Sina stock real-time data hq.sinajs.cn suddenly became inaccessible and couldn’t fetch data. This is because Sina stock has blocked the interface. You can get data by adding a forged header domain in the original data collection interface. $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_REFERER, https://finance.sina.com.cn ); //referer curl_setopt($ch, CURLOPT_TIMEOUT, 500); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_URL, $uri); $response = curl_exec($ch); if (curl_errno($ch)) { //$errno = curl_error($ch); curl_close($ch); //return [‘errno’ = $errno]; return false; } else { curl_close($ch); return $response; } ******************* The commonly used Sina real-time stock data interface, http://hq.sinajs.cn/list=code, has recently been updated. Direct access via web page returns “Kinsoku jikou desu!” (Japanese for “Access denied,” quite cultural!) After investigation, it was found that HTTPS must be used, and a Referer field must be added to the request header. Since I previously used @持有封基 teacher’s Excel template, the related VBS code needs to be updated to add request headers. However, the original XmlHttp object cannot forge some HTTP header information (including Referer), so it must be changed to WinHttp object to access. Here is the modified macro code: With CreateObject(“WinHttp.WinHttpRequest.5.1”) .Open “GET”, URL, False .setRequestHeader “Referer”, “https://finance.sina.com.cn” .Send sTemp......
The text you’ve provided consists of URLs and API endpoints, not text in another language that requires translation. These are web addresses and technical parameters that would remain the same in English: 1. quan.suning.com/getSysTime.do – URL for Suning system time 2. https://apps.game.qq.com/CommArticle/app/reg/gdate.php – Tencent game article URL 3. https://api.m.jd.com/client.action?functionId=queryMaterialProducts – JD.com API endpoint 4. client=wh5 – Client parameter 5. http://api.k780.com:88/?app=life.time – Time API URL 6. appkey=10003 – App key parameter 7. sign=b59bc3ef6191eb9f747dd4e83c99f2a4 – Signature parameter 8. format=json – Format parameter If you intended something different, please provide the text you’d like translated....
Solution for BT Panel failing to import large MySQL database files Importing MySQL files via phpMyAdmin times out. If the database is too large, you can import it using the MySQL command line with the source command. Example: 1. First, upload the database file to the /www/backup directory. The database to be imported is dapaowpsql_com, and the backup file is dapaowpsql_com.sql. 2. Log in to the MySQL command line: mysql -uroot -p. After pressing Enter, enter the password (the password is not displayed by default). Then run: use dapaowpsql_com; source /www/backup/dapaowpsql_com.sql. Press Enter and it will start importing....
Lottery API interface production – curl to get and produce interface JSON and XML format ‘; echo ‘‘; echo ‘‘; function file_get_contents_by_curl($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); $result = curl_exec($ch); curl_close($ch); return $result; } ?> Time getting API ‘; echo ‘‘; echo ‘‘;*/ function file_get_contents_by_curl($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); $result = curl_exec($ch); curl_close($ch); return $result; } ?>...