Re: For Function with Pipe Problem.

From: Paul R. Sadowski (xpert_at_mailshell13.mailshell.com)
Date: 03/25/04


Date: Thu, 25 Mar 2004 13:19:11 -0500

The only thing I can think of is to use BeyondExec with the i switch (allow
to interact with the desktop) to launch some of the applications.

Look at http://www.beyondlogic.org/consulting/remoteprocess/BeyondExec.htm
for details and see if you can use it to get that visible window.

"BaKaR" <bakar@metro-cc.DnotSpamMe.hr> wrote in message
news:c3v0tv$unv$1@brown.net4u.hr...
> Well, one more thing ..
> Ill use schtasks as "local computer\Administrator" so the tasks run in
> background.
> When i execute an *.exe file from the script ran in the schtasks ..
> background i get its process in task manager but the task is
> invisible in the tray bar.
> Any ideas how to run an exe aplication to foreground ?
> Think thats mapped to logged user ...
> But if i run schtasks as me i cannot hide the schtasks initiating, even
> with WSH script you provided.
> Every time it runs it pops svchost window (wsh script).
>
> The thing is, i have a *.cmd (which i provided) that needs to run every 3
> minutes to check some things.
> In the end of that *.cmd there is If chk. If its positive then is starts
> an exe "start aplication.exe" and after that one "cscript
> script.vbs".
>
> If i run schtasks and *.cmd with local Admin right its working every 3
> minutes in the background so i cant see it == thats ok.
> But, when it comes to that IF and its postive running exe is in
> background, including that *.vbs in the end.
>
> So, everything is kewl up to IF chk. There i need a mechanizm to run *.exe
> and *.vbs after to foreground/desktop.
>
> Any ideas ?
>
> --
>
> *. Remove: "DnotSpamMe" When R_ing.
>
>
> "Paul R. Sadowski" <xpert@mailshell13.mailshell.com> wrote in message
> news:O20OlGbEEHA.1272@TK2MSFTNGP12.phx.gbl...
>> "BaKaR" <bakar@metro-cc.DnotSpamMe.hr> wrote in message
>> news:c3s6t7$qjo$1@brown.net4u.hr...
>> >
>> > Well, the problem is, System user is giving me "background" option from
>> > schtasks.exe which i cant get like a normal user..
>>
>> If that's an issue then here's a simple way to run a batch file in a
>> hidden
>> window using WSH.
>>
>> Set WshShell = WScript.CreateObject("WScript.Shell")
>> cmd = "c:\bin\scripts\ftpputiefavs.cmd"
>> Return = WshShell.Run(cmd, 0, True)
>> set WshShell = Nothing
>>
>> Just change the string that cmd points to to whatever your batch file is.
>> Then run this script using wscript.exe as a scheduled job.
>>
>>
>>
>
>



Relevant Pages

  • Question about running EXE from a batch file
    ... We are running a batch file, I assume through CMD.EXE but that is one of my ... that in turn runs a 16-Bit DOS exe using 'start /Wait ... the users are closing the command window that is running the batch file ... Any thoughts on why the exe might not be running in the same context as the ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Combobox: WM_SETTEXT doesnt work while Sendkeys works ???
    ... I need to transfer data from an excel workbook to an *.exe program. ... I have successfully drilled down to each control window in the *.exe using ... I've tried using SendMessage and WM_COMMAND referencing the control ID's. ... Const CBN_EDITCHANGE = &H6 ...
    (microsoft.public.vb.winapi)
  • Re: Newbie Question HELP!
    ... >print because this only seems to run in python shell, or is there a way to ... Others have mentioned ways to get an EXE, but I am wondering if you are really ... go back to the "DOS"/console window (or start one and cd to the ... and you'll be able to re-run your script by just typing python myprog.py (or even just myprog.py ...
    (comp.lang.python)
  • Re: DLL and communication from another process exe
    ... It is risky to do cross-thread SendMessage, but if all you want is a bool, then if you are ... If I were doing this in a DLL, I might consider creating a UI thread in the DLL that ... creates an invisible window that handles the communication. ... EXE gets SendMessage from DLL ...
    (microsoft.public.vc.mfc)
  • Re: How to keep my com exe alive?
    ... You need to create a top-level window. ... This window can receive WM_ENDSESSION as Igor already ... Microsoft MVP, MCSD ... I use the Lockand does not call Unlockanywhere, the exe will go ...
    (microsoft.public.vc.atl)