Sign in to follow this  
Followers 0
supadodger

Simple Way To Remove First 3 Characters From All Files In A Directory?

3 posts in this topic

#1 ·  Posted (edited)

i know how to create my array and all that using the directory i just want to remove 3 characters from every file after i select the directory...

i found this : http://www.autoitscript.com/forum/index.php?showtopic=99339&st=0&p=713322&hl=FileRename%20Remove%20Characters&fromsearch=1&#entry713322

but it seems more complicated than what i need...

Edited by supadodger

Share this post


Link to post
Share on other sites



quick example worked fine for me :

$file = "01-JADAKISS - U STILL HATIN (Free HQ Mp3).avi"
$file = StringTrimLeft($file, 3)

Share this post


Link to post
Share on other sites

try filefindfirstfile and filefindnextfile to get each file name,

use stringtrimleft to remove the left 3 characters,

then use filemove to rename each file.

your example merely stripped the left the left 3 characters from your variable, not your file name.

btw im not gonna write it for you.

legoman

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0