Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

rundll32 in Csh window

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> rundll32 in Csh window Page: [1]
Login
Message << Older Topic   Newer Topic >>
rundll32 in Csh window - Nov. 15, '05, 10:48:04 AM   
asfoster

 

Posts: 34
Joined: Oct. 18, '05,
From: Lincolnshire UK
Status: offline
The apps that I am porting to Interix provide many points of access to html documentation by starting up a browser for a given url. This works fine on Solaris/Linux but under Interix I need a differnt solution. I have found that the following command runs fine in a DOS window:

rundll32 url.dll,FileProtocolHandler http://www.interopsystems.com

But, this does nothing when executed from an Interix Csh window or an xterm.

Does anyone know a way to get this to work?

_____________________________

Andy Foster
Post #: 1
RE: rundll32 in Csh window - Nov. 15, '05, 6:29:20 PM   
markfunk

 

Posts: 629
Joined: Mar. 31, '03,
Status: offline
make sure you have your system32 directory in your PATH
(e.g setenv PATH /bin:/dev/fs/C/WINDOWS/system32)
and then use your command except change "rundll32" to "rundll32.exe"

(in reply to asfoster)
Post #: 2
RE: rundll32 in Csh window - Nov. 16, '05, 4:46:57 AM   
asfoster

 

Posts: 34
Joined: Oct. 18, '05,
From: Lincolnshire UK
Status: offline
I have tried this in both the Interix Csh window and in an xterm window. Both simply return to the propmt without anything happening. I am running SFU3.5 on XP pro SP2.

I have taken a look at the forum FAQs under the section "Windows Interop FAQs" where it mentions the problems of starting a win32 GUI app from a terminal that has no "Window Station". As far as I can see, running the win32 app from the interix csh window should work ok (running notepad works ok) but that from the xterm this is not so easy (or possible). I really need to get my ported apps to be able to run up the browser to display help pages.

(in reply to markfunk)
Post #: 3
RE: rundll32 in Csh window - Nov. 16, '05, 5:30:00 AM   
Rodney

 

Posts: 3142
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
/C/WINNT/system32/rundll32.exe url.dll,FileProtocolHandler http://www.interopsystems.com

...works for me on my W2K-Pro. If I add /C/WINNT/system32 to PATH then I can shorten the line.

What is the status after the command has run? ("echo $status").

(in reply to asfoster)
Post #: 4
RE: rundll32 in Csh window - Nov. 16, '05, 5:55:29 AM   
asfoster

 

Posts: 34
Joined: Oct. 18, '05,
From: Lincolnshire UK
Status: offline
Hmmn..

Yes this works ok here too . I think I must have been su'd as root in the Interix terminal and it doesn't seem to like that. However, this is only one step closer to what I really need - that is to get the command running through a system call in my app. I think that this is best tested by getting it running from an xterm - here it just returns to the prompt and the csh status returns 0.

(in reply to Rodney)
Post #: 5
RE: rundll32 in Csh window - Nov. 17, '05, 6:50:38 AM   
asfoster

 

Posts: 34
Joined: Oct. 18, '05,
From: Lincolnshire UK
Status: offline
Well, after some digging I have decided that the best way to get a win32 app (with GUI) running from the interix xterm is to have a win32 server process running that is started prior to the xterm being kicked off. Futher calls, from within the xterm environment, to the same win32 app with command-line args will be transient requests which will result in the args being passed on to the first instance of the app (the server) via a windows named pipe. The command line args will be processed by the server app to start the nominated win32 app. It is my intention that the server app can be given either a file-name, in which case it will start up the appropriate windows app according to its mime-type or registry-assigned application and/or it can be given a specific windows app to start.

The idea is this:

1) start win32 the server process (eg. winrun --start) from either Windows or from Interix terminal environment
2) start xterm
3) run the process with args: winrun [<file-name>] [--app <windows-app-path and args>]

Of course it would be much nicer not to have to go to such lengths. Can I request that such a system be included in Interix or that the underlying problem be resolved.

(in reply to asfoster)
Post #: 6
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> rundll32 in Csh window Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047