MSFN Forums: Create shorcut :/ - MSFN Forums

Jump to content


Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Create shorcut :/ Rate Topic: -----

#1 User is offline   martinss 

  • Newbie
  • Group: Members
  • Posts: 43
  • Joined: 08-October 05

Post icon  Posted 05 July 2007 - 01:54 PM

Hello people, i'need create a shorcut in DESKTOP from Windows Live Messenger with BATCH file, the complete route is:
C:\Archivos de programa\Windows Live\Messenger\msnmsgr.exe

how can do?

Ad Bot #1 User is online   Sponsor Icon

  • Advert Bot
  • Group: Ad Bots
  • Posts: 0
  • Joined: --

Warn Status

Warning level: 0%

0
  • +
  • -

#2 User is offline   BigRandalo 

  • Newbie
  • Group: Members
  • Posts: 49
  • Joined: 24-November 06
  • Gender:Male

Posted 05 July 2007 - 03:30 PM

try this here:
http://wwwbzs.tu-gra...d/software.html (shortcut.exe)

or this: http://www.optimumx....nload/#Shortcut

hope that helps

#3 User is offline   ajua 

  • Custom Installer Maker
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,230
  • Joined: 16-April 05
  • Gender:Male
  • Location:The chair in front of Cleopetra

Posted 05 July 2007 - 03:43 PM

any of those exe files should do the work. saludos!

#4 User is offline   ckislam 

  • Islam Adel
  • PipPip
  • Group: Members
  • Posts: 136
  • Joined: 04-September 05
  • Gender:Male
  • Location:Germany

Posted 05 July 2007 - 04:56 PM

is there a way to create shortcuts without downloading an extra command?

#5 User is offline   BigRandalo 

  • Newbie
  • Group: Members
  • Posts: 49
  • Joined: 24-November 06
  • Gender:Male

Posted 06 July 2007 - 06:05 AM

i searched i while but i didnt find anything
you could use vbs scripts or those exe files
on a win98cd there is a shortcut.exe from ms but i dont have any lying around :x

Edit: just found this here @ msfn http://www.msfn.org/...showtopic=20355
and this: http://www.nirsoft.n...ils/nircmd.html

Quote

Create a shortcut on your desktop that switch the system volume between the mute and normal state.
nircmd.exe cmdshortcut "~$folder.desktop$" "Switch Volume" mutesysvolume 2

This post has been edited by BigRandalo: 06 July 2007 - 06:07 AM


#6 User is offline   Yzöwl 

  • Wise Owl
  • Icon
  • Group: Super Moderator
  • Posts: 3,639
  • Joined: 13-October 04
  • Gender:Male
  • OS:Vista Home Premium x86
  • Location:Cumbria
  • Country: Country Flag

Posted 06 July 2007 - 11:05 AM

View Postckislam, on Jul 5 2007, 11:56 PM, said:

is there a way to create shortcuts without downloading an extra command?
You can use an inf file to generate shortcuts.

Attached is a batch file I have compiled and zipped, which will create desktop shortcuts to programs.

The file is simply called using the name of the app as a parameter.

In order to achieve the required result, there are some rules:
  • The parameter must be an 'exe' file.
    e.g. msnmsgr.exe (is allowed); WinRAR.hlp (is not allowed).
  • The file extension, however, must not be input.
    e.g. msnmsgr (works); msnmsgr.exe (does not work)
  • The exe filename must not contain any spaces.
    e.g. msnmsgr (works); NFO Viewer (does not work).
  • The file must reside somewhere within %ProgramFiles%.
Example for the original questioner:
MDTLink msnmsgr

This file has not been extensively tested, especially on non-English systems.

Attached File(s)



#7 User is offline   ckislam 

  • Islam Adel
  • PipPip
  • Group: Members
  • Posts: 136
  • Joined: 04-September 05
  • Gender:Male
  • Location:Germany

Posted 06 July 2007 - 02:48 PM

hello,

i dont want want to download a command to generate my shortcuts.
i was asking how to create shortcuts with the usual windows commands from the console.
is it possible ?

thanks

This post has been edited by ckislam: 06 July 2007 - 02:48 PM


#8 User is offline   spacesurfer 

  • Pharmassist
  • Icon
  • Group: Super Moderator
  • Posts: 1,658
  • Joined: 31-July 04
  • Gender:Male
  • Location:United States

Posted 06 July 2007 - 03:27 PM

Go ahead and create your shortcut to your program e.g. "my shortcut". Shortcuts have a hidden extension lnk.

Copy that shortcut to where your script is located.

Then, use

copy "my shortcut.lnk" "x:\destination"


FYI
In order to create a shortcut, it must point to a valid location. Therefore, you have to create the shortcut beforehand. However, once you create it, it doesn't matter if the location is valid or not. And you can copy it wherever you want and it will still point to the same location.

All shortcuts have the extension .lnk although you can't see it.

#9 User is offline   Yzöwl 

  • Wise Owl
  • Icon
  • Group: Super Moderator
  • Posts: 3,639
  • Joined: 13-October 04
  • Gender:Male
  • OS:Vista Home Premium x86
  • Location:Cumbria
  • Country: Country Flag

Posted 06 July 2007 - 09:29 PM

View Postckislam, on Jul 6 2007, 09:48 PM, said:

hello,

i dont want want to download a command to generate my shortcuts.
i was asking how to create shortcuts with the usual windows commands from the console.
is it possible ?

thanks
I have already told you that it is possible using an inf file and you can also use vbscript. In order to satisfy the original posters requirements both of these methods can be implemented, (written and run), from a batch file.

There are very many, (several from myself), posts throughout this forum showing the syntax for this method of shortcut creation. As a proof of concept, I have written a batch file which creates and runs the appropriate file for you.

The file I have written is far too complex for the majority of users and for that reason it's coding has been protected from view by compiling it to an exe. The complexity is due to the way it has to be able to work with a simple input parameter. Unfortunately showing the coding of it will most certainly confuse more people than it will help.

Your file will not need to be complex like mine, if you do not wish to use my file then all you need to do is search the forums for the examples already given, digest the information and implement it yourself.

#10 User is online   ricktendo64 

  • Group: Banned Members
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,709
  • Joined: 06-June 06
  • Gender:Male
  • Location:Honduras

Posted 06 July 2007 - 10:47 PM

INF is the easiest way to do it

#11 User is offline   [deXter] 

  • The Lord of the Scripts
  • PipPipPip
  • Group: Members
  • Posts: 303
  • Joined: 08-May 04
  • Gender:Male
  • Location:0:0:0:0:0:0:0:1

Post icon  Posted 07 July 2007 - 12:22 AM

View Postckislam, on Jul 6 2007, 02:48 PM, said:

hello,

i dont want want to download a command to generate my shortcuts.
i was asking how to create shortcuts with the usual windows commands from the console.
is it possible ?

thanks


If you really want to do this by typing out commands in the console, then just run these commands one by one:

echo > s.vbs set Ws = WScript.CreateObject("WScript.Shell")
echo >>s.vbs set Os = Ws.CreateShortcut("%UserProfile%\Desktop\Messenger.lnk")
echo >>s.vbs Os.TargetPath = "%ProgramFiles%\Windows Live\Messenger\Msnmsgr.exe"
echo >>s.vbs Os.WorkingDirectory = "%ProgramFiles%\Windows Live\Messenger"
echo >>s.vbs Os.Save
echo.>>s.vbs
s


I suppose the commands are pretty self-explanatory. The CreateShortcut line is the full path to the shortcut you want to create, TargetPath is the full path of the program, and WorkingDirectory line is required for some programs to launch properly. Windows Live Messenger however doesn't require this line and you can skip it. The shortcut will be created when you type "s" and press enter.

This post has been edited by [deXter]: 07 July 2007 - 12:23 AM


#12 User is offline   ckislam 

  • Islam Adel
  • PipPip
  • Group: Members
  • Posts: 136
  • Joined: 04-September 05
  • Gender:Male
  • Location:Germany

Posted 07 July 2007 - 11:01 AM

@ [Dexter]

Thats Great.. thanks a lot.. exactly what i was looking for. :thumbup

do you know how to set the icon of the shortcut?

#13 User is offline   [deXter] 

  • The Lord of the Scripts
  • PipPipPip
  • Group: Members
  • Posts: 303
  • Joined: 08-May 04
  • Gender:Male
  • Location:0:0:0:0:0:0:0:1

Posted 07 July 2007 - 11:55 AM

Yeah.. just add this line before the "echo >>s.vbs Os.Save" line:

echo >>s.vbs Os.IconLocation = "C:\Path to some icon\someicon.ico"


You can also set the other properties too, like for adding a hotkey, just add a line having Os.Hotkey = "CTRL+SHIFT+M" , and if you want a description add Os.Description = "Lets you have online conversations." :)

#14 User is offline   ckislam 

  • Islam Adel
  • PipPip
  • Group: Members
  • Posts: 136
  • Joined: 04-September 05
  • Gender:Male
  • Location:Germany

Posted 07 July 2007 - 12:32 PM

perfect thanks. :rolleyes:

#15 User is offline   Yzöwl 

  • Wise Owl
  • Icon
  • Group: Super Moderator
  • Posts: 3,639
  • Joined: 13-October 04
  • Gender:Male
  • OS:Vista Home Premium x86
  • Location:Cumbria
  • Country: Country Flag

Posted 07 July 2007 - 01:14 PM

View Postckislam, on Jul 7 2007, 06:01 PM, said:

.. exactly what i was looking for.
When 'looking for' did you think to try:
    either
  • shortcut vbs
    or
  • shortcut inf
in the 'basic' Google site search at the top of each page of the forum?

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users