I have a exe file [ dos based ] in default-web-app directory. Once connected to the net I find my IP address and give it to a friend and then start orion web server as usual. Now, I write a batch file where the exe file name with parameters is given and some echo statements. I want my friend to run this batch file from his machine, giving the url as http://my IP add here/batch file name. He is able to execute all other commands in the batch file except the exe file. the error he finds is "bad command or file name" in his dos window. what could be the problem? thanks, jytsika
command into your bat file to see if your friend is in the directory you expect him to be in.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Joined: Feb 08, 2001
I had already done that by giving 'md' command to check which dir the orion server is searching for the exe file and it happens to be c:\windows\desktop. So I copied the exe file to the desktop but he is still unable to execute it. Why does the orion searches the desktop dir? Does it have anything to do with the server configuration file. Moreover, the exe file once started will try to access database and index files available in other sub-directories. So I foresee further probs relating to directory access. The path settings are all correct in autoexe file thanks jytsika
You're trying to have the other user execute a exe file that resides on a remote system through the batch file? I think that is where your problem lays. Far as I know, the batch file doesn't actually run on the remote server, it runs on his system, and so it is going to look in his directory for the exe. I've written several batch jobs for the servers I administer, and never been able to accomplish what you're asking. What are some of the other commands that he is able to accomplish? I think the desktop issue is it is looking at his desktop, not the desktop that the orion server is running on. For instance, if I'm at home and I call a batch file on one of the servers at work, it's going to run the batch file my local directory, which defaults to D:\winnt\system32. If there is a call to an exe in that batch file, it will expect my local machine to have the exe, and the appropriate files it takes to run the application. If I don't have them, it gives an error. The other commands that he is able to run are probably common Windows commands that anyone running a DOS shell can execute. [ March 28, 2002: Message edited by: jason adam ]