_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2007 12:08 PM
To: [email protected]
Subject: RE: [Talk] UNC vs mapped drives
Stephen.
I regularly use the UNC address rather than the mapped drive letter in my
scripts. Here is a snippet of VB code where the paths are set and then
checked.
Dim test1 As Boolean
Dim test2 As Boolean
Dim fs As Object
Set fs = CreateObject("scripting.filesystemobject")
OutFolder = "\\clientimp01\c\outbound\ksmd\"
InFolder = "\\bridge\c\bridge\payacks\ksmd\get\"
test1 = False
test2 = False
' Check for existence of data paths. If path is not found then
' add message to log file.
test1 = fs.folderexists(OutFolder)
If test1 = False Then
Msg_ = "Path " & OutFolder & " is not available."
AddLog Msg_
End If
test2 = fs.folderexists(InFolder)
If test2 = False Then
Msg_ = "Path " & InFolder & " is not available."
AddLog Msg_
End If
Eric Pitzer
PNC Financial Services Group, Inc.
Xpack Network Services Division
1-800-919-7749
"Stephen R. Smesny" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
12/05/2007 10:15 AM
Please respond to
[email protected]
To
<[email protected]>
cc
Subject
RE: [Talk] UNC vs mapped drives
Found this article on Microsoft. Could be related, but not positive.
<http://support.microsoft.com/kb/297684>
http://support.microsoft.com/kb/297684
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stephen R. Smesny
Sent: Wednesday, December 05, 2007 10:22 AM
To: [email protected]
Subject: [Talk] UNC vs mapped drives
All of my scripts on my scripting server interact with other files on other
servers. I have several mapped drives set up pointing to the appropriate
folders. However, I run into problems as the mapped drives are very
unreliable. They will disconnect and cause the the script to crash. The
only other option I can think of is simply using the UNC path instead of a
mapped drive. But I have been unsuccessfuly with this in the past. Will
Boston Workstation recognize and interact properly using the UNC paths? If
not, any recommendations on how to keep my mapped drives up? I have
reconnect at login set to Y, but the machine is never logged off, so there
is no logging in to reconnect the drive. Is there a VB command that I can
run in the beginning of each script to make sure the drive is connected,
All suggestions are appreciated.
Thanks in advance,
Stephen Smesny
**********************************************************************
The information contained in this electronic communication, and any
electronic attachment(s), is CONFIDENTIAL and is intended only for the named
recipient(s) above. If the reader of this message is not the intended
recipient(s), you are hereby notified that any release of information or
distribution of this communication is prohibited by law. If you have
received this message in error, or are not the named recipient(s), please
immediately notify the sender via reply email and delete this communication.
**********************************************************************
This message was scanned with MIMESweeper.
The contents of this email are the property of PNC. If it was not addressed
to you, you have no legal right to read it. If you think you received it in
error, please notify the sender. Do not forward or copy without permission
of the sender. This message may contain an advertisement of a product or
service and thus may constitute a commercial electronic mail message under
US Law. PNCs postal address is 249 Fifth Avenue, Pittsburgh, PA 15222. If
you do not wish to receive any additional advertising or promotional
messages from PNC at this e-mail address, click here to Unsubscribe.
https://pnc.p.delivery.net/m/u/pnc/uni/p.asp By unsubscribing to this
message, you will be unsubscribed from all advertising or promotional
messages from PNC. Removing your e-mail address from this mailing list will
not affect your subscription to alerts, e-newsletters or account servicing
e-mails.