468,321 Members | 1,754 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,321 developers. It's quick & easy.

VB Script to create a folder with UNC path (HELP)

usafshah
104 100+
hi

I want a script which makes a folder (or u can say a shortcut) with UNC path like

\\192.0.0.6\ImportantData
Nov 14 '06 #1
4 7526
Killer42
8,434 Expert 8TB
hi
I want a script which makes a folder (or u can say a shortcut) with UNC path like
\\192.0.0.6\ImportantData
I'm pretty sure that's a URL, not a UNC. And it sounds as though what you want to create would be more correctly referred to, at least in Windows terms, as an Internet Shortcut.
You could try this: http://www.freevbcode.com/ShowCode.Asp?ID=456
This one looks as though it goes into more depth:http://www.windowsdevcenter.com/pub/...Shortcuts.html

Here's an interesting quote from DevX: Unlike regular LNK shortcut, which contain data in binary file, Internet shortcut files are just text files in this format.

And here's a link to the page there:Create an Internet shortcut
Nov 14 '06 #2
usafshah
104 100+
thanks alot killer for your reply but

i dont think its a url

\\192.68.0.13\foldername is UNC path (as for as i know)

but i want a vbscript which makes a folder that points to that UNC path or internet shorcut whatever you call.
Nov 15 '06 #3
albertw
267 100+
thanks alot killer for your reply but

i dont think its a url

\\192.68.0.13\foldername is UNC path (as for as i know)

but i want a vbscript which makes a folder that points to that UNC path or internet shorcut whatever you call.
hi maybe you'll get something out of this...

UNC folder
Nov 15 '06 #4
Killer42
8,434 Expert 8TB
hi maybe you'll get something out of this... UNC folder
Also, you could try simply opening a file called Whatever.URL and write this text into it...
[InternetShortcut]
URL=\\192.0.0.6\ImportantData

It may or may not work, but at least it's a nice easy one to try out.
Nov 15 '06 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Synapse Syndrome | last post: by
1 post views Thread by Oliver Marshall | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.