Search found 4 matches

by msabeal
03 Sep 2010 03:18
Forum: DOS Batch Forum
Topic: Change first character in filename
Replies: 8
Views: 9194

Re: Change first character in filename

Okay, DOS has serious problems with putting unicode into a batch file, so do this. Copy this � character. Open Command Prompt (MS-DOS), and type: set char= Right click the window, paste and press enter. Save this batch somewhere: @echo off&setlocal enabledelayedexpansion for %%x in ("C:\.....
by msabeal
03 Sep 2010 02:30
Forum: DOS Batch Forum
Topic: Change first character in filename
Replies: 8
Views: 9194

Re: Change first character in filename

Some explanation about this problem.

This sign (Square) is the swedish character Ö. A file has been received in our enviroment on a ftp server. In the translation, it change to this square. I put one filename in here (from Explorer), I hope it will help.

�UV10FEX.xml
by msabeal
03 Sep 2010 00:23
Forum: DOS Batch Forum
Topic: Change first character in filename
Replies: 8
Views: 9194

Re: Change first character in filename

@echo off&setlocal enabledelayedexpansion for %%x in ("C:\...\Target Folder\*.xml") do ( set "name=%%~nxx" ren "%%~dpx?!name:~1!" O!name:~1! ) This script takes all *.xml files, even if they starts with other character, only file that start with "square",...
by msabeal
02 Sep 2010 08:57
Forum: DOS Batch Forum
Topic: Change first character in filename
Replies: 8
Views: 9194

Change first character in filename

Hi, Need help to replace one character in filename, but only the first. In Explorer the first character its a square and in DOS its ?. Now I want to change it to O, because I can´t move this file further to another directory with the software I want to use (Opalis Integration server). The filename l...