forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Link create help

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Sun Aug 10, 2008 1:32 am    Post subject: Link create help Reply with quote

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
View user's profile Send private message Send e-mail
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Sun Aug 17, 2008 12:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Mon Aug 18, 2008 7:34 am    Post subject: Reply with quote

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 Sad

This is the command I use:
Code:
Link Create,c:\Programmi,c:\,pippo


why? what I wrong??
Back to top
View user's profile Send private message Send e-mail
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Sat Aug 23, 2008 7:14 am    Post subject: Reply with quote

Ahh ok. Yes, you're right. It does not work Sad

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
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Aug 25, 2008 2:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Fri Aug 29, 2008 12:53 pm    Post subject: Reply with quote

DAVE:

Tnx but I really need to create a link to a folder Crying or Very sad


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
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Aug 29, 2008 4:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
jrmarquart
Valued Newbie


Joined: 12 Jun 2004
Posts: 28
Location: Boise, ID

PostPosted: Sat Aug 30, 2008 4:48 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Sep 03, 2008 12:26 pm    Post subject: Reply with quote

I haven't tested this... but have you tried calling upon file:///c:/ ?
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group