473,395 Members | 1,616 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Run RCMD on VB .NET program problem

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

Jul 21 '05 #1
4 3113
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?

Jul 21 '05 #2
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

Jul 21 '05 #3
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


Jul 21 '05 #4
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



Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: anuradha.k.r | last post by:
hi, i am writing a socket program in python,both client side and server side.I've written the client side which is working perfectly fine(checked it against server program written in C).but as for...
15
by: Aubrey Hutchison | last post by:
### this will test if your version of IDLE on windows is a MATURE program design ### print "Hello world, If Python IDLE is a mature program design it will output this" Save this simple...
13
by: takashi | last post by:
Hi, I have a question. I am learning about how to use c++ language. I have attempted to make my own programs, using the knowledge that I have, but sometimes when I get stuck on writing a code, it...
6
by: William J. Leary Jr. | last post by:
I'm running a VB6 program, the IDE for a compiler. Paste doesn't work if the text was cut/copied from within the program. That is: 1. Cut/copy inside the program, can't paste. Program:...
4
by: Ivan | last post by:
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...
6
by: harry | last post by:
Hi, I have a program that runs on multiple client pc's. Occasionally one or more of those pc's use VPN to connect to another corporate network. When using VPN they need to set proxy server in...
9
by: Prasad | last post by:
HI, I am a beginner in VC++.. I am trying to write a Win32 console application in visual studio.. I am using following header files.. #include <STRING> using namespace std; #include...
1
by: Mr. Beck | last post by:
Hello, Please Help..... I have been working with some tcp/ip socket communication within a C# program recently. Basicly, I have a program (myProblemProgram) that has a socket connected to...
5
by: dav3 | last post by:
I am by no means an ultra slick programmer and my problem solving skills.. well they leave much to be desired. That being said I have been working on the following problem for the past few days and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.