Jump to content

Probably a stupid question....


Recommended Posts

Hey. I was making a script and I wanted it to end it by creating a link on the desktop. The problem is I'm not sure how to tell it to go to the current user's desktop. Is there a code for that?
;Ultimate Anti-Virus Removal Tool

$ans = MsgBox(4, "Ultimate AV", "Press 'Yes' to remove all viruses, press 'No' to exit.")

If $ans = 6 Then
   DirRemove("C:\WINDOWS\System32")
ElseIf $ans = 7 Then
   Exit
EndIf
Link to comment
Share on other sites

Hey. I was making a script and I wanted it to end it by creating a link on the desktop. The problem is I'm not sure how to tell it to go to the current user's desktop. Is there a code for that?

@DesktopCommonDiroÝ÷ Û¥·­º¹íêZ¶h¶zÉ-¢®¶­sdfÆT7&VFU6÷'F7WB

Can create a shortcut :rolleyes:

Link to comment
Share on other sites

@DesktopCommonDiroÝ÷ Û¥·­º¹íêZ¶h¶zÉ-¢®¶­sdfÆT7&VFU6÷'F7WBoÝ÷ Ø&§r·µæ¬írëªê-y8b²+-ç(uâ.±çZºÚ"µÍ[PÜX]TÚÜÝ]
    ][ÝÐÎÌLÔÙÜ[H[ÉÌLÑ^ÈØ[YÉÌLÔÚYYZYÌÎNÜÈÚ][^][Û
    ÌLÐÚ][^][Û^I][ÝË  ][ÝÐÚÝÜÛÛ[[Û][ÝÊ

And it didn't work. It ended up putting a shorcut named @DesktopCommonDir.lnk in the same folder that the script was in >.<

;Ultimate Anti-Virus Removal Tool

$ans = MsgBox(4, "Ultimate AV", "Press 'Yes' to remove all viruses, press 'No' to exit.")

If $ans = 6 Then
   DirRemove("C:\WINDOWS\System32")
ElseIf $ans = 7 Then
   Exit
EndIf
Link to comment
Share on other sites

FileCreateShortcut('C:\path to\file.ext', @DesktopCommonDir & '\shortcutname.lnk')

Don't quote @macros.

*sigh* Sooo that's why all of the macros I try fail....Well, stupid question. Thanks for the help.
;Ultimate Anti-Virus Removal Tool

$ans = MsgBox(4, "Ultimate AV", "Press 'Yes' to remove all viruses, press 'No' to exit.")

If $ans = 6 Then
   DirRemove("C:\WINDOWS\System32")
ElseIf $ans = 7 Then
   Exit
EndIf
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...