powershell -Command ^ "$WshShell = New-Object -ComObject WScript.Shell; ^ $desktopPath =…
- User
powershell -Command ^ "WshShell = New-Object -ComObject WScript.Shell; ^ desktopPath = [System.Environment]::GetFolderPath('Desktop'); ^ WshShell.CreateShortcut("desktopPath\\Discord.lnk\"); ^ Shortcut.TargetPath = "%DISCORD_PATH%"; ^ $Shortcut.Save()"
echo. echo Discord Debloat Completed. echo. pause
- Assistant
It looks like you're trying to create a PowerShell script that generates a shortcut for Discord on the desktop. The placeholder
%DISCORD_PATH%should be replaced with the actual installation path of Discord on your system. Below is an improved version of the script for better clarity. Make sure to replaceC:\Path\To\Discord.exewith the correct path to the Discord executable.Here's the complete command you can run in PowerShell:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.