473,473 Members | 1,533 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

Nov 20 '05 #1
4 1603
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
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
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
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 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...
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: 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:...
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...
5
by: weidongtom | last post by:
Hi, I tried to implement the Universal Machine as described in http://www.boundvariable.org/task.shtml, and I managed to get one implemented (After looking at what other's have done.) But when I...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.