How to execute 'cd' command in perl in windows ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karthik baskar
    New Member
    • Sep 2010
    • 16

    How to execute 'cd' command in perl in windows ?

    I need to execute 'cd' (change directory) command in windows.
    I tried that using
    1)system('cd..' )
    2)`cd`

    But both are not working. Please provide me with a solution.

    Thanks in advance ..
  • miller
    Recognized Expert Top Contributor
    • Oct 2006
    • 1086

    #2
    perldoc: chdir

    - Miller

    Comment

    • numberwhun
      Recognized Expert Moderator Specialist
      • May 2007
      • 3467

      #3
      I would really suggest you read up on perldoc. A lot of the Perl documentation can be found there and easily referenced.

      Regards,

      Jeff

      Comment

      Working...