
Search found 12 matches
- 21 Apr 2014 11:07
- Forum: DOS Batch Forum
- Topic: Spaces in files names in command within batch file
- Replies: 25
- Views: 8374
Re: Spaces in files names in command within batch file
I think I'll keep using whatever works 

- 21 Apr 2014 03:03
- Forum: DOS Batch Forum
- Topic: Spaces in files names in command within batch file
- Replies: 25
- Views: 8374
Re: Spaces in files names in command within batch file
I edited my post above when I realised you were processing text files. Try giving the information in your first post next time, eh? You are correct, Sir, I could have done a better job in the first post However, in a post above: List files from directory. In each file, find some characters and exch...
- 21 Apr 2014 02:53
- Forum: DOS Batch Forum
- Topic: Spaces in files names in command within batch file
- Replies: 25
- Views: 8374
Re: Spaces in files names in command within batch file
file.txt contains a list of files. I don't understand what you're trying to do here I want those changes made in the files themselves, not piped into a text file. For example: First lines of first m3u file (Best Of.m3u) #EXTM3U #EXTINF:296,ABBA - The Winner Takes It All D:\Public Music\ABBA\The Defi...
- 21 Apr 2014 01:11
- Forum: DOS Batch Forum
- Topic: Spaces in files names in command within batch file
- Replies: 25
- Views: 8374
Re: Spaces in files names in command within batch file
Fair enough, let's try with repl.bat: @echo off REM -- Use repl.bat to substitute location and slash characters for playlists from Windows to Synology P: FOR /F "delims=" %%i IN ('dir /B') DO ( echo Opening %%i echo Replacing location echo off type %%i | call repl.bat "D:\Public "...
- 20 Apr 2014 13:21
- Forum: DOS Batch Forum
- Topic: Spaces in files names in command within batch file
- Replies: 25
- Views: 8374
Re: Spaces in files names in command within batch file
vinnie2k wrote:C:\Users\vmuso_000\Vincent>PlaylistWindows2SynologyConverter.bat
Opening Best Of.m3u
Replacing location
Of.m3u""=="" was unexpected at this time.
First playlist's name is Best Of.m3u
- 20 Apr 2014 13:11
- Forum: DOS Batch Forum
- Topic: Spaces in files names in command within batch file
- Replies: 25
- Views: 8374
Re: Spaces in files names in command within batch file
C:\Users\vmuso_000\Vincent>PlaylistWindows2SynologyConverter.bat
Opening Best Of.m3u
Replacing location
Of.m3u""=="" was unexpected at this time.

Opening Best Of.m3u
Replacing location
Of.m3u""=="" was unexpected at this time.

- 20 Apr 2014 09:54
- Forum: DOS Batch Forum
- Topic: Spaces in files names in command within batch file
- Replies: 25
- Views: 8374
Re: Spaces in files names in command within batch file
List files from directory.
In each file, find some characters and exchange them with others.
Done
(this is useful for making m3u playlists generated on Windows compatible with Linux-type Synology NAS systems)
In each file, find some characters and exchange them with others.
Done

(this is useful for making m3u playlists generated on Windows compatible with Linux-type Synology NAS systems)
- 20 Apr 2014 09:41
- Forum: DOS Batch Forum
- Topic: Spaces in files names in command within batch file
- Replies: 25
- Views: 8374
Re: Spaces in files names in command within batch file
Because I have no idea what I'm doing? 

- 20 Apr 2014 09:27
- Forum: DOS Batch Forum
- Topic: Spaces in files names in command within batch file
- Replies: 25
- Views: 8374
Re: Spaces in files names in command within batch file
OK, let's use call: call "c:\Users\vmuso_000\Vincent\BatchReplace.bat "D:\Public " "/volume1/" %%i" Issue is that call is going to execute "c:\Users\vmuso_000\Vincent\BatchReplace.bat " and forget about the rest. I need to tell call that the double quote befor...
- 20 Apr 2014 09:18
- Forum: DOS Batch Forum
- Topic: Spaces in files names in command within batch file
- Replies: 25
- Views: 8374
Re: Spaces in files names in command within batch file
Here's what I do: @echo off REM -- Prepare the Command Processor -- SETLOCAL ENABLEEXTENSIONS SETLOCAL DISABLEDELAYEDEXPANSION if /I "%~1"=="/h" goto:help if "%3"=="" goto:help if "%~1"=="" findstr "^::" "%~f0"&goto:...
- 18 Apr 2014 07:37
- Forum: DOS Batch Forum
- Topic: Spaces in files names in command within batch file
- Replies: 25
- Views: 8374
Re: Spaces in files names in command within batch file
Do you mean like this? FOR /F "delims=" %%i IN ('dir P: /B') DO ( echo Opening %%i echo Replacing location echo off c:\Users\vmuso_000\Vincent\BatchReplace.bat "D:\Public " "/volume1/" "%%i" echo Replacing slash echo off c:\Users\vmuso_000\Vincent\BatchReplace...
- 18 Apr 2014 04:43
- Forum: DOS Batch Forum
- Topic: Spaces in files names in command within batch file
- Replies: 25
- Views: 8374
Spaces in files names in command within batch file
Hi guys, Thank you to those who already posted advice on how to build these scripts Here is mine. It works perfectly well for all the files retrieved by the dir command which have no space in their name. For filenames with spaces, DOS returns an error because it can't find the file specified - it mo...