[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 384: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
The Chu Forums • View topic - simple script
Page 1 of 2

simple script

PostPosted: Wed Feb 27, 2013 3:50 pm
by geForce
Can someone help me write a simple script?
I need to transfer files to Sharepoint, but Sharepoint doesn't like special characters like & * # % etc. I want a script that can go through all the files within a certain directory and delete these characters from the file names.

Is that possible at all?

Re: simple script

PostPosted: Wed Feb 27, 2013 4:06 pm
by nature boy
haha, i thought you wanted a script for a play or something.
and i thought wtf mate.

Re: simple script

PostPosted: Wed Feb 27, 2013 4:09 pm
by geForce

Re: simple script

PostPosted: Wed Feb 27, 2013 5:15 pm
by joel
depends on what kind of files. word docs? text files?

Re: simple script

PostPosted: Wed Feb 27, 2013 5:21 pm
by se7entse7en
I think he just wants the filenames changed, not the file contents.

Re: simple script

PostPosted: Wed Feb 27, 2013 11:34 pm
by geForce
Yeah, just the file names.

Re: simple script

PostPosted: Thu Feb 28, 2013 12:12 am
by se7entse7en
I think it's done. All I need is a comprehensive list of characters that you want removed from your filenames.

Also, it will require DotNet Framework 2.0 installed... though you probably already do.

Re: simple script

PostPosted: Thu Feb 28, 2013 9:40 am
by geForce
Wow, thanks Shaun!

I think I probably do have DotNet Framework installed, but not sure if it will allow outside programs to access it due to restrictions from company. Will give it a try though.

Here are the characters:
~ # % & * { } / : < > ? \ "

Re: simple script

PostPosted: Thu Feb 28, 2013 9:56 am
by se7entse7en
I just sent you an email.

Re: simple script

PostPosted: Thu Feb 28, 2013 10:09 am
by geForce
Sweetness, it worked like a charm! It takes only a split second to do too, whereas I had to take an 30-60 minutes to do it manually.

Why is it called GoogleMapsHack.exe though? Kinda scared me when I saw that at first, haha.

Re: simple script

PostPosted: Thu Feb 28, 2013 10:10 am
by geForce
I owe you one Shaun, thanks! I'll buy you lunch :)

Re: simple script

PostPosted: Thu Feb 28, 2013 10:15 am
by se7entse7en

Re: simple script

PostPosted: Thu Feb 28, 2013 10:42 am
by jeSteR
Lunch is better than $5 I guess.

Re: simple script

PostPosted: Thu Feb 28, 2013 2:13 pm
by nature boy
holy crap i have no idea what just happened.

so anyone want to help me finish writing this play?

Re: simple script

PostPosted: Thu Feb 28, 2013 2:21 pm
by jeSteR
fiver.com