Many thanks for the help but...
Using Windows 7 x64 running command from a batch file in a particular folder
I use many paq8/paq9 command line compressors to back up my files. Of these, many can't read directory structures, so individual file names need to be put into a particular single-line syntax. I can get a list of files from a text file from a specific directory, but they are naturally in singles. I need to create a text file that will give the contents, but all in 1 line separated by a space. My batch is here:
dir /a /b /-p /o:gen >%USERPROFILE%\Desktop\file_list_full.txt
I want to be able to pop this line into a batch file in ANY folder and just run it to create a text list of folder contents
As an example, this will give:
Hello.exe
Help.txt
Big.png
sound.ogg
I need it to be:
Hello.exe Help.txt Big.png sound.ogg
Example of paq compression structure and to why this needs to be done especially when you may have a couple hundred files in a folder!!
paq9a a Archive.paq9a -8 -c feasting.exe License.txt INFO.txt data.win D3DX9_43.dll data.big dbr.ut
How can I do this?
If I leave the text file to create as is. Is there a way then of replacing "new Line" with a "space" to get the required result?