Jump to content

Recommended Posts

Posted

MyFile.exe is hardly a shortcut. It's an executable file. Perhaps the shortcut is "MyFile.exe.lnk" and you just have extensions hidden? If not, check to see if the file is readonly, perhaps FileDelete can't delete readonly files.

Posted

all shortcuts end in .lnk no matter what, and thats an L not I so like saunders says, tell it to delete "MyFile.exe.lnk"

[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

Posted

...

You used "GUIctrlcreateshortcut" to put it in the startup folder?

Praytell, what is this function "GUIctrlcreateshortcut" ?

Perhaps you meant "FileCreateShortcut" ?

If you did, then I'd like to you to see something...

AutoIt:

FileCreateShortcut('C:\', 'C:\TestDir\MyFile.exe')

Cmd:

C:\>dir C:\TestDir
 Volume in drive C is Primary
 Volume Serial Number is 349F-9788

 Directory of C:\TestDir

30/01/2005  09:06 AM    <DIR>         .
30/01/2005  09:06 AM    <DIR>         ..
30/01/2005  09:06 AM               288 MyFile.exe.lnk
               1 File(s)            288 bytes
               2 Dir(s)   7,577,804,800 bytes free

See? MyFile.exe.lnk

So if you used FileCreateShortcut to make your shortcut, it automatically puts .lnk on the end. WinXP hides the extension of .lnk files, even if you have extensions unhidden.

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
  • Recently Browsing   0 members

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