HEX FILE NAMES

A swapping-ground for Regular Expression syntax

HEX FILE NAMES

Postby vvasileiou » Thu Jul 21, 2016 12:51 pm

Hallo,

I need to batch rename some files with a name containing only HEX characters.

Is it possible with this application?

Thanks
vvasileiou
 
Posts: 1
Joined: Thu Jul 21, 2016 11:54 am

Re: HEX FILE NAMES

Postby therube » Thu Jul 21, 2016 1:36 pm

An Ascii to Hex routine would cover it I would think, so that would be something ripe for 'JavaScript Renaming' (available in the paid version of BRU).
therube
 
Posts: 394
Joined: Mon Jan 18, 2016 6:23 pm

Re: HEX FILE NAMES

Postby Admin » Thu Jul 21, 2016 4:50 pm

Hi, can you give some file name examples (from -> to)? thanks
Admin
Site Admin
 
Posts: 1505
Joined: Tue Mar 08, 2005 8:39 pm

Re: HEX FILE NAMES

Postby therube » Thu Jul 21, 2016 5:33 pm

I was under the impression that he would like it to simply replace any arbitrary name with the same in hex.

So something like:

> for i = 1 to name.len, i=ath(i), next i.

Code: Select all
0010 INPUT X$                       
0020 PRINT HTA(X$)                 
0030 INPUT *                       
0040 GOTO 0010                     
>end                               
                                   
READY                               
>run                               
this is a test                     
7468697320697320612074657374       

this is a test.txt                 
74686973206973206120746573742E747874
                                   
redbluepicture.jpg                 
726564626C7565706963747572652E6A7067
therube
 
Posts: 394
Joined: Mon Jan 18, 2016 6:23 pm


Return to Regular Expressions