Jump to content

Cmd Ile Masaüstüne Kısayol Attırabilirmiyiz ?


ArminVB
 Share

Recommended Posts

[quote name='casira' date='28 January 2012 - 22:48 ' timestamp='1327783703' post='1147422']
Cmd ile yapılıyordur belki ama istersen autoit bu iş için ideal.
[b]
#NoTrayIcon
FileCreateShortcut(@ProgramFilesDir & "\CCleaner\CCleaner.exe",@DesktopDir & "\CCleaner.lnk","","","Forever TNCTR")[/b]
[/quote]
[center][b]cmd olursa daha iyi olur ama bir cevap alamazsam autoit'i denerim. [/b][/center]

Link to comment
Share on other sites

[quote name='blackman12' date='29 January 2012 - 00:00 ' timestamp='1327788046' post='1147451']
hayır cmd de bunun için bir komut yok ufak bir programcıkla yapıyordum ben eskiden.
[/quote]
[b]peki ben nerden bulucağım öyle bir programcık ? :D [/b]

Link to comment
Share on other sites

windows7 yüklü sistemlere powershell ile aşağıdaki kodla yapabilirsin

function CreatePSShortcut {
$wshell = New-Object -comObject WScript.Shell
$path1 = $wshell.SpecialFolders.Item('Desktop')


$path1| ForEach-Object {
$link = $wshell.CreateShortcut("$_\Hesap Makinesi.lnk")
$link.TargetPath = 'calc.exe'
$link.Description = 'Hesap Makinesi'
$link.WorkingDirectory = $home
$link.IconLocation = 'calc.exe'
$link.Save()
}
}

CreatePSShortcut

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...