I just had a power outage and I lost my queue.bat
All chars has been replaced by NUL. I didn't made a copy since 3 days.
Is my file really dead?
edit: I rewrite the file - I'm not lucky these days
Thank again to Dave.
Search found 49 matches
- 06 Jan 2012 03:09
- Forum: DOS Batch Forum
- Topic: parallel process with batch
- Replies: 7
- Views: 18566
- 04 Jan 2012 09:49
- Forum: DOS Batch Forum
- Topic: parallel process with batch
- Replies: 7
- Views: 18566
Re: parallel process with batch
Dave, the file.lock is a very clever solution.
Just made some tests and it works perfectly
Nothing to say! Thx for your help.
And you are right, files can even be added to the queue during queue processing. But I'm not sure it is necessary to use the lock for this.
Just made some tests and it works perfectly
Nothing to say! Thx for your help.
And you are right, files can even be added to the queue during queue processing. But I'm not sure it is necessary to use the lock for this.
- 04 Jan 2012 07:56
- Forum: DOS Batch Forum
- Topic: parallel process with batch
- Replies: 7
- Views: 18566
Re: parallel process with batch
!k, thanks for help My first attempts were quite similar, unfortunately I can't do like this because many encoders CLI change windows title. For exemple, x264.exe use the title to display work progress and other infos: x264 [40%]... 2 other reasons: it requires an additional batch windows and a enco...
- 03 Jan 2012 16:00
- Forum: DOS Batch Forum
- Topic: parallel process with batch
- Replies: 7
- Views: 18566
Re: parallel process with batch
Fantastic !
I'll try tomorrow
Thank you Dave
I'll try tomorrow
Thank you Dave
- 02 Jan 2012 07:39
- Forum: DOS Batch Forum
- Topic: parallel process with batch
- Replies: 7
- Views: 18566
parallel process with batch
Hello guys and happy new year I need help again with parallel processing, I hope you'll understand my english I use batch scripts for video and audio encoding. My small application generates all batch commands for my encoding jobs. It can also work with a queue list which is stored in a text file li...
- 12 Dec 2011 14:17
- Forum: DOS Batch Forum
- Topic: Help with context menu
- Replies: 6
- Views: 8341
Re: Help with context menu
Hello
I'm using KuShellExtension for this. It's a C++ dll. Very easy to use.
Can be used with batch also; it's very useful for working with files.
(note: if you want to use it with more than one program, you will have to define different CLSID in the config file)
I'm using KuShellExtension for this. It's a C++ dll. Very easy to use.
Can be used with batch also; it's very useful for working with files.
(note: if you want to use it with more than one program, you will have to define different CLSID in the config file)
- 24 Nov 2011 15:26
- Forum: DOS Batch Forum
- Topic: browsing files having special chars
- Replies: 6
- Views: 6170
Re: browsing files having special chars
this is a mistake, I forgot to uncomment an endlocal in the for sorry for time wasting! What a noob I am! final code (could help beginners like me) : for /f "usebackq delims=" %%i in (`dir /B /O:N "%presets_path%\*.txt"`) do ( set "preset_name=%%~i" setlocal EnableDela...
- 24 Nov 2011 14:50
- Forum: DOS Batch Forum
- Topic: browsing files having special chars
- Replies: 6
- Views: 6170
Re: browsing files having special chars
You're right, for with delimiters may be the best solution. I'll make some modification Thanks But I have a big surprise: set _sortlist_ display the expected result but this looses ! and ^ again setlocal DisableDelayedExpansion if "%presets_cnt%" NEQ "0" ( for /f "tokens=1* ...
- 24 Nov 2011 13:37
- Forum: DOS Batch Forum
- Topic: browsing files having special chars
- Replies: 6
- Views: 6170
Re: browsing files having special chars
Excellent! you're an encyclopedia of batch Thank you very much. Is there any reason you used for /f instead a simple for ? for /F "delims=" %%v in ("_sortlist_!indexpos!_!presets_cnt!") DO ( Here's my code (to be improved) I had to use several endlocal for the same setlocal. I do...
- 24 Nov 2011 07:27
- Forum: DOS Batch Forum
- Topic: browsing files having special chars
- Replies: 6
- Views: 6170
browsing files having special chars
Hi guys One more time, I don't manage to keep special chars ! and ^ in filenames when browsing files, because of EnableDelayedExpansion I already tried so many things but none worked. Can you help please? setlocal EnableDelayedExpansion for /f "usebackq delims=" %%i in (`dir /B /O:N "...
- 19 Nov 2011 16:49
- Forum: DOS Batch Forum
- Topic: escaping the % of filenames ???
- Replies: 5
- Views: 4991
Re: escaping the % of filenames ???
That's very clear, thanks again jeb
- 19 Nov 2011 16:40
- Forum: DOS Batch Forum
- Topic: How to call a batch having carets ?
- Replies: 7
- Views: 6525
Re: How to call a batch having carets ?
And of course, this is the same for arguments:
(except if args have one " ... )
Code: Select all
set "file=a ^ b.bat"
set "arg1=this ^ works"
set "arg2=perfectly ^^"
call "%%file%%" "%%arg1%%" "%%arg2%%"
(except if args have one " ... )
- 19 Nov 2011 16:05
- Forum: DOS Batch Forum
- Topic: How to call a batch having carets ?
- Replies: 7
- Views: 6525
Re: How to call a batch having carets ?
I think I love this forum! hope it helps Of course it helps! worked perfectly with my test file escape tests a%b&c^d!é'f)g(h=i`j~k%%l&&m^^n!!o.bat another advantage of your technic: I don't have to escape % before the call as I was doing till now set "file=!file:%%=%%%%!" Many ...
- 19 Nov 2011 11:27
- Forum: DOS Batch Forum
- Topic: How to call a batch having carets ?
- Replies: 7
- Views: 6525
Re: How to call a batch having carets ?
I think I've found:
call seems to escape ^ only if they are surrounded by quotes.
thank anyway Ed' !
Code: Select all
set "bat_file=a ^ b.bat"
call "%bat_file:^="^^"%"
:: or
set "bat_file2=%bat_file:^="^^^^"%"
call "%bat_file2%"
thank anyway Ed' !
- 19 Nov 2011 10:22
- Forum: DOS Batch Forum
- Topic: How to call a batch having carets ?
- Replies: 7
- Views: 6525
Re: How to call a batch having carets ?
Hum... this is trying to call "a ^^^^ b.bat", as call command escapes caretsEd Dyreen wrote:Code: Select all
call "a ^^ b.bat"