By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,644 Members | 2,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,644 IT Pros & Developers. It's quick & easy.

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

usafshah
100+
P: 104
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
Share this Question
Share on Google+
4 Replies


Expert 5K+
P: 8,434
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
100+
P: 104
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

100+
P: 267
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

Expert 5K+
P: 8,434
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.