Re: For Function with Pipe Problem.
From: Paul R. Sadowski (xpert_at_mailshell13.mailshell.com)
Date: 03/25/04
- Next message: Matthias Tacke: "Re: Findstr question"
- Previous message: Jerold Schulman: "Re: Re: [?]save a registry key"
- In reply to: BaKaR: "Re: For Function with Pipe Problem."
- Messages sorted by: [ date ] [ thread ]
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.
>>
>>
>>
>
>
- Next message: Matthias Tacke: "Re: Findstr question"
- Previous message: Jerold Schulman: "Re: Re: [?]save a registry key"
- In reply to: BaKaR: "Re: For Function with Pipe Problem."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|