General discussion

Locked

Create a shorcut from the line command

By j.momier ·
how to create a shorcut in the desktop from the line command ?

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Create a shorcut from the line command

by gra In reply to Create a shorcut from the ...

You question is vague.
Could you give me a for instance?

Collapse -

Create a shorcut from the line command

by j.momier In reply to Create a shorcut from the ...

The question was auto-closed by TechRepublic

Collapse -

Create a shorcut from the line command

by tmaclennan In reply to Create a shorcut from the ...

You can copy a desktop shortcut onto a person's Win9x desktop like this:

copy example.lnk c:\windows\desktop

Remember that if you are using long filenames for the link, you must use the short filename equivalent for DOS.

Collapse -

Create a shorcut from the line command

by j.momier In reply to Create a shorcut from the ...

I don't want to copy a shortcut (that doesn't work, it points to the .exe where I create the link ...), I want to CREATE a shortcut !

Collapse -

Create a shorcut from the line command

by tmaclennan In reply to Create a shorcut from the ...

Well, as far as I know, you can't create a shortcut from the desktop. However, you can create a shortcut that points to a local batch file, and copy that .LNK file to the user's desktop, while creating a .BAT file from the command line. Creating a .BAT file from the command line can be done by typing this:
COPY CON TEST.BAT
Dir *.* (or whatever)
^Z
After typing a Control-Z, the batch file will be closed with a "1 file copied." message.
If you are creating the batch file using a batch file, you can just echo your lines into a .BAT:
echo dir *.* >TEST.bat
echo pause >>TEST.bat

Collapse -

Create a shorcut from the line command

by j.momier In reply to Create a shorcut from the ...

The question was auto-closed by TechRepublic

Collapse -

Create a shorcut from the line command

by j.momier In reply to Create a shorcut from the ...

This question was auto closed due to inactivity

Back to Windows Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums