Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Issue with env variables set through dos batch

by dasgar (Curate)
on Oct 13, 2011 at 17:57 UTC ( #931351=note: print w/replies, xml ) Need Help??


in reply to Re^2: Issue with env variables set through dos batch
in thread Issue with env variables set through dos batch

What you described in #1 should work. This is very similar to what happens with the portable version of Strawberry Perl.

In the case of portable Strawberry Perl, there's batch script that you run first and it does two things: opens a command prompt window and sets the environment variables for just that command prompt window. From there, you can run your scripts and Windows will know where to find all of the Perl files (perl.exe, "installed" modules, etc.) for the portable Strawberry Perl.

Also, I haven't tested it, but ikegami's suggestion looks like it should work too.

  • Comment on Re^3: Issue with env variables set through dos batch

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://931351]
help
Chatterbox?
[james28909]: i found a demo in the PDK samples, and it works there, so just need to figure out what im doing wrong.
[choroba]: Shouldn't you replace it with your app's name?
[james28909]: i figured it out

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-07-28 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (430 votes). Check out past polls.