For Programmers: Free Programming Magazines  


Home > Archive > ASP > October 2006 > IIS, ASP, wshell.run, command prompt, console width, height









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author IIS, ASP, wshell.run, command prompt, console width, height
maykil ceksin

2006-10-30, 6:59 pm


Hi,

Is there anyone knows which user profile is using by IIS while running
an DOS application within asp with wshell.run command.

To describe my problem clear;

I'm using a DOS command and within ASP. My code is something like
this;

set wshell = server.createobject("wscript.shell")
commandline = "tclsh84.exe test1.tcl"
intReturn=wshell.run(commandline,0,true)

Everything is OK.. Script is running and the rest of the code is
written output to the screen...

The problem is, script generates 200-300 characters width outputs..
But since IIS runs it in a 80X24 window the output is converted to 80
character width lines...

If I manually use tclsh84.exe test1.tcl command within a DOS prompt, I
can easily adjust the window properties to set window size something
like 300X100 so I can see the output is not modified.. And if i save
this properties, future using of this command is not modified too...

Windows write this properties into registry

HKEY_Current_User\Console\HKEY_CURRENT_U
SER\Console\C:_tcl_bin_tclsh84.exe


Since this has been written to HKEY_Current_User, this change isn't
available for other users and the user which IIS is using...

I've tried

- Copying my profile to Default User and All Users profile.
- Logging to IIS/Windows server with IUSR_server, IWAM_server users and
make this window size changing,

but it doesnt work..

I hope i can describe my problem...

Anyone can show me what I'm doing wrong or missing??

Thanks in advance...

Ajdar..



--
maykil ceksin
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message1707351.html

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com