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

onyourmarkAsked:
Who is Participating?
 
pilson66Connect With a Mentor Commented:
start-->run-->cmd
H:
cd unrenamedFiles
0
 
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
 
onyourmarkAuthor Commented:
Thanks!
0
All Courses

From novice to tech pro — start learning today.