Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: I know this probably isn't possible, but...

by Anonymous Monk
on Jul 29, 2001 at 22:39 UTC ( [id://100709]=note: print w/replies, xml ) Need Help??


in reply to trigger script on file change in WinME

ok, thanks for the help, but i guess i'll just run a script in scheduled tasks to back the text file up if it's been changed (and it'll run every 15 min). my problem now is, when the scheduler runs the script, that big ugly dos window will pop up in the middle of my screen. what i want to do now, is to hide the console window so that it wont surprise me at an inopportune time...i know this is possible, but i don't know how to do it...
  • Comment on Re: I know this probably isn't possible, but...

Replies are listed 'Best First'.
(bbfu) Re2: I know this probably isn't possible, but...
by bbfu (Curate) on Jul 30, 2001 at 00:20 UTC

    If you're running ActiveState, it comes with an alternate executable wperl.exe that is a true Win32 app. and so doesn't display the console window. This is great for applications like yours, as well as writing Tk or Win32::GUI apps in Perl. :-) I usually set up an association with wperl.exe for any files with the extension .plw.

    If you're not using ActiveState, or don't have a wperl.exe for some reason, you can make your own or you can try the work-around.

    bbfu
    Seasons don't fear The Reaper.
    Nor do the wind, the sun, and the rain.
    We can be like they are.

      how does being a win32 app change what perl can do? can i still use file tests like -e and -M? and can i still use localtime?

        The only thing it changes is how Windows treats the application when it starts; ie. whether or not Windows creates a console window for the application when it's first started. Everything else should work exactly the same.

        bbfu
        Seasons don't fear The Reaper.
        Nor do the wind, the sun, and the rain.
        We can be like they are.

Re: Re: I know this probably isn't possible, but...
by maverick (Curate) on Jul 29, 2001 at 23:17 UTC
    From 'My Computer' find the script that the scheduler is going to run. Right click -> Properties and look at the bottom of the 'Program' tab. The 'Run' drop list has an entry for 'Minimized' and below that there's a 'Close On Exit' check box. It's probably different under ME, but that's how it looks under 98.

    /\/\averick

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://100709]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-19 03:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found