Hello, I made a batch script using VB.NET which deletes shortcut on my desktop. The problem is that shortcut title contains unicode characters so batch doesn't work. However if I remove that unicode character from the shortcut and batch script it does delete the shortcut. How can I make it delete the shortcut w/o removing that unicode character?
VB.NET:
tempstring = "@echo off"
tempstring = tempstring & vbCrLf & "del " & Chr(34) & My.Computer.FileSystem.SpecialDirectories.Desktop & "\My shortcut™ 1.lnk" & Chr(34)
tempstring = tempstring & vbCrLf & "del %0"
My.Computer.FileSystem.WriteAllText(My.Computer.FileSystem.SpecialDirectories.Temp & "\temp.bat", tempstring, False, System.Text.Encoding.Default)
Shell(My.Computer.FileSystem.SpecialDirectories.Temp & "\temp.bat", AppWinStyle.Hide)