1.

Solve : how can i make shotcut via batch file?

Answer»

I want to make SHOTCUT on desktop
how can i do this
pls help meHow can i get the desktop path
please help me


reply soon
1. copy this batch file to notepad
2. SAVE to your desktop as show.bat
3. double click to see desktop folder path

Code: [Select]@echo off
echo this batch file is in directory:
echo %~dp0
echo.
pause



Do you want to list your Desktop directory? Your Desktop should be at:
%HomeDrive%%HomePath%\Desktop

So you can try:
Code: [Select]echo My Desktop is in the directory %HomeDrive%%HomePath%\Desktopor
Code: [Select]cd /d %HomeDrive%%HomePath%\DesktopQuote from: shajahan on May 26, 2007, 12:21:50 PM

I want to make shotcut on desktop
how can i do this
pls help me
you can use vbscript
Code: [Select] Set oWS = WScript.CreateObject("WScript.Shell")
shortCut = "C:\temp\myshortcut.lnk"
Set oLink = oWS.CreateShortcut(shortCut)
oLink.TargetPath = "C:\temp\test.bat"
oLink.WorkingDirectory = "C:\temp"
oLink.Save


or you can use the shortcut.exe resource KIT from NT


Discussion

No Comment Found