1.

Solve : checking if file names contain spaces?

Answer»

As the title READS, I would like to be able to see if a file name contains spaces, or if the path contains spaces.

for example:

SUPER Adventure.smc has a space in it, therefore i want it to go to SOMEWHERE else. Or if it is possible i would like it to be renamed.

C:\Bob Claton\pop rocks\ has two spaces in it, so i want it to go to somewhere else.

i hope im clear.Setting the delims as spaces, use FOR to PARSE the filename into 2 tokens. If the first token is EQUAL to the whole filename, there weren´t any spaces in it.



Discussion

No Comment Found