path to remote server in VBA

R

Roger Marrs

The folder where I'd like to save a document is located on a remote server
that is accessed via Windows terminal services. When working with a server
on my local network, I can access the folder I want with the following code:

Dim FSO As FileSystemObject
Dim NewDir As String

Set FSO = CreateObject("Scripting.FileSystemObject")

NewDir = "\\lvco-dc\prosecutor\CaseDocs\" & CaseNumber

If Not FSO.FolderExists(NewDir) Then
FSO.CreateFolder NewDir
End If

With Dialogs(wdDialogFileSaveAs)
.Name = "\\lvco-dc\prosecutor\CaseDocs\" & CaseNumber & "\" &
DocFileName
.Show
End With

Is it possible to accomplish the same end result when the destination folder
is accessed through terminal services?

Roger
 
R

Roger Marrs

Never mind, I think I figured out how to handle this so it's not an issue.

Roger Marrs said:
The folder where I'd like to save a document is located on a remote server
that is accessed via Windows terminal services. When working with a server
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top