Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: OS independent perl script

by Anonymous Monk
on Feb 21, 2014 at 18:42 UTC ( #1075767=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @setlocal
    @set thisdir=%~dp0
    @set thisfile=%~f0
    ...
    @echo;
    @endlocal
    
  2. or download this
             thisdir=D:\
            thisfile=D:\this2.bat
    thisfilebasename=this2
        thisfilename=this2.bat
      thisfilecorion=D:\this2.pl
          thisfilepl=D:\this2.pl
    
  3. or download this
    @setlocal
    @set "thisdir=%~dp0"
    @set "thisfile=%~f0"
    ...
    @echo;
    @endlocal
    
  4. or download this
    $  "D:\pa^th\this2.bat"
             thisdir=D:\path\
            thisfile=D:\path\this2.bat
    ...
      thisfilecorion=D:\path\this2.pl
          thisfilepl=D:\path\this2.pl
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2019-09-16 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (196 votes). Check out past polls.

    Notices?