1.

Solve : Help to get position of @ character in a string....?

Answer»

Can anyone help me find the position of the @ CHARACTER in the following filename string

set [emailprotected] Title.mp4

I really need to get this working ASAP

CheersCode: [Select]set extract=%filename:1~30%
is that wat your after, please explain more
,Nick(macdad-)Quote

I really need to get this working ASAP

We don't generally guarantee same day service like a laundry, but I was out for a STROLL and stumbled upon this post.

Code: [Select]@ECHO off
set [emailprotected] Title.mp4
set POS=0

:start
call set chr=%%filename:~%pos%,1%%
set /a pos+=1
if %chr%[emailprotected] echo Position=%pos% & exit /b
goto start

We just answered a similar QUESTION. If you're in a hurry, it's better to search the forum.



Discussion

No Comment Found