0

さて、私はドメイン以外のタブレットにあるアプリケーションを持っています。

アプリケーション シェルの開始時に、適切な資格情報をネットワーク unc パスにコマンドします。

Shell("net use \\mypath\destloca password username")

このコマンドは正しく、想定されていることを実行します。

次に、私は電話します

 Dim dir As New IO.DirectoryInfo(loca)

 If Not dir.Exists Then
        MessageBox.Show("There are no records for loca", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification)
        Exit Sub
    End If

これは通常は問題なく動作しますが、時々 false が返されます。ネットワークは接続されていますが、ドメイン リソースにアクセスできません。

ただし、もう一度シェルを実行すると、UNC パスにアクセスできるようになります。

誰かアイデアはありますか?

4

0 に答える 0