By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,684 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,684 IT Pros & Developers. It's quick & easy.

Run RCMD on VB .NET program problem

P: n/a
Hello all,

I have the urgent problem. Pls help me.

I have written VB .net program to fax PDF document. The program hasn't
screen interface and runs in Command Prompt.

Here is some program segments.
faxserver.connect(LocalComputerName)
faxserver.createdocument("c:\test.pdf")
....
faxserver.send()

That's ok when I run in local computer Win2000 Server.
But, I can't run it remotely. I use RCMD.

RCMD \\ServerName "C:\FaxProgramName Param1 Param2"

There is no error code prompt. I can see the program process in server
computer. I have created and used the same username account both in server
(Win 2K server ) and Remote computer (WinNT WKS) with the administrator
right.

Thanks in Advance.
IVAN CHAN

Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Sat, 4 Oct 2003 13:52:39 +0800, "Ivan" <iv******@hotmail.com>
wrote:

There is no error code prompt. I can see the program process in server
computer. I have created and used the same username account both in server
(Win 2K server ) and Remote computer (WinNT WKS) with the administrator
right.


This means that the problem is with the fax software on the server.
Probably a silly question, but on which maching are you storing the
file to fax? And can the server see it with the same path?

Nov 20 '05 #2

P: n/a
I'd suggest adding some logging functions so you can figure out what is
going on inside your program.
-mike
MVP

"Ivan" <iv******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello all,

I have the urgent problem. Pls help me.

I have written VB .net program to fax PDF document. The program hasn't
screen interface and runs in Command Prompt.

Here is some program segments.
faxserver.connect(LocalComputerName)
faxserver.createdocument("c:\test.pdf")
...
faxserver.send()

That's ok when I run in local computer Win2000 Server.
But, I can't run it remotely. I use RCMD.

RCMD \\ServerName "C:\FaxProgramName Param1 Param2"

There is no error code prompt. I can see the program process in server
computer. I have created and used the same username account both in server
(Win 2K server ) and Remote computer (WinNT WKS) with the administrator
right.

Thanks in Advance.
IVAN CHAN

Nov 20 '05 #3

P: n/a
I just use native fax object from VB .net.

I try to audit the simple program which include only few lines on FaxServer
object. Then, I enable WIN2k auditing on it. However, I get nothing when I
use RCMD to run. If I run it on local server, I can do auditing on it.

How to add logging function? Is it the security problem on calling PDF? Now,
I 'm no idea how to do now...

"Michael Giagnocavo [MVP]" <mg*******@Atrevido.net> wrote in message
news:OS**************@tk2msftngp13.phx.gbl...
I'd suggest adding some logging functions so you can figure out what is
going on inside your program.
-mike
MVP

"Ivan" <iv******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello all,

I have the urgent problem. Pls help me.

I have written VB .net program to fax PDF document. The program hasn't
screen interface and runs in Command Prompt.

Here is some program segments.
faxserver.connect(LocalComputerName)
faxserver.createdocument("c:\test.pdf")
...
faxserver.send()

That's ok when I run in local computer Win2000 Server.
But, I can't run it remotely. I use RCMD.

RCMD \\ServerName "C:\FaxProgramName Param1 Param2"

There is no error code prompt. I can see the program process in server
computer. I have created and used the same username account both in server (Win 2K server ) and Remote computer (WinNT WKS) with the administrator
right.

Thanks in Advance.
IVAN CHAN


Nov 20 '05 #4

P: n/a
Open a file, and write to that file as the log file.
-mike
MVP

"Ivan" <iv******@hotmail.com> wrote in message
news:uj**************@TK2MSFTNGP09.phx.gbl...
I just use native fax object from VB .net.

I try to audit the simple program which include only few lines on FaxServer object. Then, I enable WIN2k auditing on it. However, I get nothing when I
use RCMD to run. If I run it on local server, I can do auditing on it.

How to add logging function? Is it the security problem on calling PDF? Now, I 'm no idea how to do now...

"Michael Giagnocavo [MVP]" <mg*******@Atrevido.net> wrote in message
news:OS**************@tk2msftngp13.phx.gbl...
I'd suggest adding some logging functions so you can figure out what is
going on inside your program.
-mike
MVP

"Ivan" <iv******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello all,

I have the urgent problem. Pls help me.

I have written VB .net program to fax PDF document. The program hasn't screen interface and runs in Command Prompt.

Here is some program segments.
faxserver.connect(LocalComputerName)
faxserver.createdocument("c:\test.pdf")
...
faxserver.send()

That's ok when I run in local computer Win2000 Server.
But, I can't run it remotely. I use RCMD.

RCMD \\ServerName "C:\FaxProgramName Param1 Param2"

There is no error code prompt. I can see the program process in server
computer. I have created and used the same username account both in server (Win 2K server ) and Remote computer (WinNT WKS) with the administrator right.

Thanks in Advance.
IVAN CHAN



Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.