Re: sorry for the noob question, but I need to know how to hide the command prompt
by ikegami (Patriarch) on Mar 08, 2005 at 03:36 UTC
|
To use wperl, just open up a prompt, and say wperl myscript.pl. The script will run in the background, and you can close the command prompt. It only works for Perl scripts.
To check the version of perl, type perl -v at the command prompt.
| [reply] [d/l] [select] |
Re: sorry for the noob question, but I need to know how to hide the command prompt
by jZed (Prior) on Mar 08, 2005 at 03:39 UTC
|
> how do I check which version of perl I have.
perl -v
>I have no idea how to use wperl.exe.
I don't have windows handy but I think you just use wperl foo.pl instead of perl foo.pl. Also do a search on this site for "hide command prompt" and you'll probably see many other suggestions. | [reply] |
|
|
Thanks for explaining wperl :) it works almost perfectly. I am using system to open a process and that command prompt does pop up...how can I create that with wperl also? It still pops open when it creates the other process for half a second and then closes. :) my other question is, is there a perl script I can write that will automatically assosiate an extension beisded pl to wperl...like make the file foo.wl for wperl and foo.pl for perl. do you know what i mean? thanks a bunch :)
| [reply] |
Re: sorry for the noob question, but I need to know how to hide the command prompt
by holli (Abbot) on Mar 08, 2005 at 05:47 UTC
|
Instead of typing wperl yourscrip.pl, you could choose another extension for your script, e.g. ".wp" (don't use ".wpl" - that is already used by the MediaPlayer) and associate that with wperl.exe. That way you can then simply double-click the file to invoke the script with wperl.exe.
The simplest way to associate a filename with an extension is to say
Context-menu->
Open->
Choose a program->
Search(Select wperl.exe)->
Check "Always use this program"->
OK.
| [reply] [d/l] [select] |
|
|
hehe....i thought of that idea last night..i picked .wl but .wp does sound more logical...I may switch it :) Thank you very much though!
However, I still want to better this code :) is there a way I could do that in my program. I plan on making a fully fledged proggy eventually. It will have an install file that will set a few settings in it, then hopefully it will associate .wl (or .wp, whatever the user chooses) with wperl.exe :). Thank you and everyone else very much. the help has been great :)
| [reply] |
|
|
File assiciations are set via the Registry. There are several modules to manipluate the Registry, e.g. Tie::Registry.
| [reply] |
|
|
|
|
Re: sorry for the noob question, but I need to know how to hide the command prompt
by gube (Parson) on Mar 08, 2005 at 03:35 UTC
|
Hi, refer this
Hiding the DOS window..
http://www.perlmonks.com/index.pl?node_id=432813 Hiding the DOS window..
Regards,
Gubendran.L
| [reply] |
Re: sorry for the noob question, but I need to know how to hide the command prompt
by goober99 (Scribe) on Mar 08, 2005 at 03:24 UTC
|
Read up on the documentation for the PAR module and the pp utility that comes with it. pp allows you to compile your script as an executable. You can use the -g option to hide the console window. | [reply] |
|
|
I tried -g....it didn't work....as for the pp and stuff like that..i want it to stay uncompiled because individual people will need to be able to edit the files to work with their networks! Also, I'm going to try updating the software...see if that helps. I'm not sure if I have the newest version.
| [reply] |