| View previous topic :: View next topic |
| Author |
Message |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Sun Aug 10, 2008 1:32 am Post subject: Link create help |
|
|
Hi forum, I need to create a shourtcut of a folder
it's possible with the vds6 command link create?
If yes, how?
many tnx for any info
Last edited by Tdk161 on Mon Aug 18, 2008 8:25 am; edited 1 time in total |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Sun Aug 17, 2008 12:57 pm Post subject: |
|
|
Do you mean this?
LINK CREATE, <filename>, <link path>, <link name>
<filename> = file or directory that link will run/open
<link path> = location where link is to be created
<link name> = name of shortcut _________________ cheers
Dave |
|
| Back to top |
|
 |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Mon Aug 18, 2008 7:34 am Post subject: |
|
|
| DaveŽ wrote: | Do you mean this?
LINK CREATE, <filename>, <link path>, <link name>
<filename> = file or directory that link will run/open
<link path> = location where link is to be created
<link name> = name of shortcut |
Yes, I know this command, with file work fine but with folder not work
This is the command I use:
| Code: | | Link Create,c:\Programmi,c:\,pippo |
why? what I wrong?? |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Sat Aug 23, 2008 7:14 am Post subject: |
|
|
Ahh ok. Yes, you're right. It does not work
It seems to check if the file exists and because a directory is not a file it fails. If you try to create a link to a file that does not exist it also fails.
It is as if it is doing something like:
if @file(C:\Programmi)
link create,C:\Programmi,C:\,pippo
end _________________ cheers
Dave |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Aug 25, 2008 2:41 pm Post subject: |
|
|
Tdk161,
Have you looked at my vdsshortcut.DLL? It can do what you are asking. This and a few other reasons was why I built this dll. Try it _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Fri Aug 29, 2008 12:53 pm Post subject: |
|
|
DAVE:
Tnx but I really need to create a link to a folder
Dragonspere
I looked your dll, but I don't want if possible use external dll
Many tnx to all for your info |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Aug 29, 2008 4:18 pm Post subject: |
|
|
You can always make a .url file instead:
| Code: | LIST CREATE,1
LIST ADD,1,[InternetShortcut]
LIST ADD,1,URL=c:\program files
LIST SAVEFILE,1,@windir(DESKTOP)\Program Files.url |
_________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
jrmarquart Valued Newbie
Joined: 12 Jun 2004 Posts: 28 Location: Boise, ID
|
Posted: Sat Aug 30, 2008 4:48 am Post subject: |
|
|
Actually a solution to this issue was posted a while back by Dr. Dread. Anyway here is a rehash. The NewFolderLinkonDesktop(MayBeOffline) I actually had to look up on google on how to do, but the goal here is to be able to create a shortcut to a computer object that may not be online at the time the shortcut link is being created (and also so a proper error message is returned without having explorer hang). I needed to do this on a network to link with network folders that may be offline during the time of the shortcut link creation process.
This is VDS 5 code, but I'm assuming it will work in VDS 6 also (change the path to the .ico of course).
Off Topic: Is anyone running VDS 6.0 code in a production enviornment? I am interested in updating to 6.0, but I am concerned that no patches have been released yet for 6.0?
| Code: | %%Source = C:\Windows
%%Destination = C:\Documents and Settings\All Users\Desktop
%%NameofFolderOnline = NewFolderLinkonDesktop
%%NameofFolderOffline = NewFolderLinkonDesktop(MayBeOffline)
rem create shortcut link for online directory
link create,@windir()\explorer.exe,%%Destination,%%NameofFolderOnline,C:\Program Files\Visual DialogScript 5\default.ico,,%%Source
rem create shortcut link for a directory that may be offline
link create,@windir()\system32\rundll32.exe,%%Destination,%%NameofFolderOffline,C:\Program Files\Visual DialogScript 5\default.ico,,shell32.dll@chr(44) ShellExec_RunDLL %%Source
|
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Sep 03, 2008 12:26 pm Post subject: |
|
|
I haven't tested this... but have you tried calling upon file:///c:/ ? _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|