• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 246
  • Last Modified:

run perl on an external drive

Hi. I want to run this script on on files in H:\unrenamedFiles

I tried cd  H:\unrenamedFiles
but cannot seem to get out of the C drive.

The purpose of the script is to rename all the files in the directory.
Is there a way to do this on the external drive?
Thank you.
perl -e "rename $_,(/([^\d_]*)_?(\d*)-?(\d*)-?(\d*)_?([\d-]*)(.*)/,qq($4-$3-$2_$5_$1$6)) or warn qq($_ $!) for <tweets_*.csv> "

Open in new window

0
onyourmark
Asked:
onyourmark
  • 2
  • 2
1 Solution
 
pilson66Commented:
in console:

H:\
cd unrenamedFiles
0
 
onyourmarkAuthor Commented:
Hi. I forgot to say this is windows.

'H:\' is not recognized as an internal or external command,
operable program or batch file.
0
 
pilson66Commented:
start-->run-->cmd
H:
cd unrenamedFiles
0
 
onyourmarkAuthor Commented:
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now