Title: RE: How can I get Perl to work like a bat file.

Sorry for being a wanker.

See inline for results... some content has been deleted to cut down on scrolling up and down.


> > $PgmReturn = system('cd /D C:\install');
> > $PgmReturn = system('setp.exe');
Error: The name specified is not recognized as an internal or external command, operable program or batch file.

> > or this:
> > $PgmReturn = system(cd /D C:\\install);
> > $PgmReturn = system('setp.exe');
Error: Search pattern not terminated at test-post.pl line 1.

> > That would look like this (I think):
> > chdir('C:\install') or die "I can't find that directory: $!";
> > system('setp.exe');
Works as expected.

> > Or, you could just do this:
> > system('C:\install\setp.exe');
Works as expected.


> > As always, There's More Than One Way To Do It (tm).

> And some of them lead to nowhere.


> P.S.: Please test your suggestions before you post them.
I imagine I will from now on... don't think I've ever post a code sample before anyway.

> == [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
> : What do people think?
> What, do people think?  :-)
You be the judge of that, this time.
>              -- Larry Wall in <[EMAIL PROTECTED]>

Reply via email to