A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Networking and the Internet with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Network share checking help



 
 
Thread Tools Display Modes
  #1  
Old August 6th 09, 06:15 AM posted to microsoft.public.windowsxp.network_web
Remush via WindowsKB.com
external usenet poster
 
Posts: 22
Default Network share checking help

Hi Guys,

I need help working out how to check if a network share is available when a
user log's on,

such as \\pc1\user3

if that share is available
Map the network drive to t: for example
And then set the user's my documents path to t:\my_documents
else
set the user's my documents path to something local such as d:\user\
my_documents
end if

There is a bit more stuff I want to do with this, but this will get me
started.

--
Message posted via WindowsKB.com
http://www.windowskb.com/Uwe/Forums....twork/200908/1

Ads
  #2  
Old August 6th 09, 09:11 AM posted to microsoft.public.windowsxp.network_web
Anteaus
external usenet poster
 
Posts: 1,330
Default Network share checking help


If exist \\server\share\nul {action}

will generally achieve this, provided the server gives the 'dot' entries.
(If not it will still work for all but an empty share)

Have a look at http://mylogon.net for some hints on this and similar coding.
The source is available.

"Remush via WindowsKB.com" wrote:

Hi Guys,

I need help working out how to check if a network share is available when a
user log's on,

such as \\pc1\user3

if that share is available
Map the network drive to t: for example
And then set the user's my documents path to t:\my_documents
else
set the user's my documents path to something local such as d:\user\
my_documents
end if

There is a bit more stuff I want to do with this, but this will get me
started.

--
Message posted via WindowsKB.com
http://www.windowskb.com/Uwe/Forums....twork/200908/1


  #3  
Old August 6th 09, 09:11 AM posted to microsoft.public.windowsxp.network_web
Anteaus
external usenet poster
 
Posts: 1,330
Default Network share checking help



If exist \\server\share\nul {action}

will generally achieve this, provided the server gives the 'dot' entries.
(If not it will still work for all but an empty share)

Have a look at http://mylogon.net for some hints on this and similar coding.
The source is available.

"Remush via WindowsKB.com" wrote:

Hi Guys,

I need help working out how to check if a network share is available when a
user log's on,

such as \\pc1\user3

if that share is available
Map the network drive to t: for example
And then set the user's my documents path to t:\my_documents
else
set the user's my documents path to something local such as d:\user\
my_documents
end if

There is a bit more stuff I want to do with this, but this will get me
started.

--
Message posted via WindowsKB.com
http://www.windowskb.com/Uwe/Forums....twork/200908/1


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 06:54 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.