Visio2003: Automate HTML convertion

S

Sven Weindel

Hi all,

Unfortunately I have the problem to export my visio files to a target samba
path with dedicated login & password.

In a batch script I can use the command:

net use \\<linux machine> /USER: xxx <password>


Example:

no problems: objWebPageSettings.TargetPath = "\\<windows
machine>\<filename>.htm"
problem: objWebPageSettings.TargetPath = \\<linux
machine>\<filename>.htm (with username xxx and password yyy)

How can I provide the dedicated login & password with the target path?


Regards,
Sven
 
S

Sven Weindel

Hi,
Unfortunately I have the problem to export my visio files to a target samba
path with dedicated login & password.

How can I provide the dedicated login & password with the target path?

I found a solution to execute the net use command for my problem:

Dim sCmd As String
Dim sShell As String

sCmd = "net use \\<linux_machine\<folder> /USER:xxx <Passwd>"
sShell = Environ$("COMSPEC")
Shell sShell & " /c " & sCmd, vbHide


Regards,
Sven
 

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