Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: OS independent perl script

by Anonymous Monk
on Feb 21, 2014 at 18:42 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1075767]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-24 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found