Search found 13 matches
- 20 Apr 2017 17:26
- Forum: DOS Batch Forum
- Topic: Batch won't work properly after conversion to exe
- Replies: 8
- Views: 7818
Re: Batch won't work properly after conversion to exe
I tested this setup numerous times and it works perfectly fine, while in the batch form. So I think that it's safe to assume the paths are all set correctly? I may not be as techy as some of you guys on here so... plz extra patience. What I noticed, is that Batch 2 and 3, when they are launched by B...
- 20 Apr 2017 13:58
- Forum: DOS Batch Forum
- Topic: Batch won't work properly after conversion to exe
- Replies: 8
- Views: 7818
Re: Batch won't work properly after conversion to exe
aGerman, I changed them to .exes as I said. The version you are seeing is the batch version, which I use to confirm that everything should work, there is literally no difference in those two, except the .bat/.exe difference. I converted batch codes to exes successfully in the past, it's only rarely ...
- 20 Apr 2017 08:03
- Forum: DOS Batch Forum
- Topic: Batch won't work properly after conversion to exe
- Replies: 8
- Views: 7818
Re: Batch won't work properly after conversion to exe
Batch 1: start /min x1\x2\image_c-1.bat start /min x1\temp_storage\check.bat Batch 2: set mdir=%~dp0 cd %mdir% cd.. cd temp_storage :getPID [RtnVar] setlocal disableDelayedExpansion :getLock set "lock=%temp%\%~nx0.%time::=.%.lock" set "uid=%lock:\=:b%" set "uid=%uid:,=:c%&qu...
- 20 Apr 2017 04:11
- Forum: DOS Batch Forum
- Topic: Batch won't work properly after conversion to exe
- Replies: 8
- Views: 7818
Batch won't work properly after conversion to exe
Three batch files that work with each other won't do the job properly after being converted to exe files, but they do everything correctly in their bat form. I tried setting up both 64 bit and 32 bit conversions, but both won't work. How would I go about determining where the error is? Yes, where th...
- 17 Apr 2017 14:57
- Forum: DOS Batch Forum
- Topic: How to exclude strings that do not begin with (insert here)
- Replies: 10
- Views: 6941
Re: How to exclude strings that do not begin with (insert here)
aGerman wrote:ShadowThief I assume the latter won't work without option c.
You mean
Code: Select all
findstr /rb /c:"[3][4][0-9][0-9][0-9][0-9][0-9][0-9] " *.txt
- 17 Apr 2017 13:14
- Forum: DOS Batch Forum
- Topic: How to exclude strings that do not begin with (insert here)
- Replies: 10
- Views: 6941
Re: How to exclude strings that do not begin with (insert here)
I made a text file with the content 34111111 and another one with 34111111111111111111111. Both of them came up, instead of only the one with eight numbers. Is not the limit set by the amount of times I write [0-9]? F.ex., [0-9][0-9] = 2, [0-9][0-9][0-9] = 3. A bit confused here, any ideas as to why...
- 17 Apr 2017 10:04
- Forum: DOS Batch Forum
- Topic: How to exclude strings that do not begin with (insert here)
- Replies: 10
- Views: 6941
Re: How to exclude strings that do not begin with (insert here)
Apologize for any noobie mistakes, but I thought /m would print the filename containing the string(s) that I want? It's basically meant to be a program that finds all phone numbers that I have saved on the computer. They length is always the same and the first two numbers are always the same, that i...
- 17 Apr 2017 05:17
- Forum: DOS Batch Forum
- Topic: How to exclude strings that do not begin with (insert here)
- Replies: 10
- Views: 6941
How to exclude strings that do not begin with (insert here)
From this I would get all strings that are eight numbers in length, but what if I want to exclude all of the results that do not begin with two specific numbers? For example out of 12345678 23456789 34567890 I want only those that begin with 34, so the last result would be the only one to show up. f...
- 17 Apr 2017 05:01
- Forum: DOS Batch Forum
- Topic: How to view through a byte order mark in batch using findstr
- Replies: 6
- Views: 4839
Re: How to view through a byte order mark in batch using findstr
zask wrote:I need to use findstr to view in batch and exe files with raw text.
I am not sure I understand you, but as far as I know you can't view the contents of exe files in a reasonable way using a text editor, the closest you'll come to viewing exe files is through programs like OllyDbg.
- 16 Apr 2017 16:08
- Forum: DOS Batch Forum
- Topic: How do I suppress the "a duplicate file name exists, or the file cannot be found" message?
- Replies: 1
- Views: 3349
How do I suppress the "a duplicate file name exists, or the file cannot be found" message?
When I move many files, sometimes the message "a duplicate file name exists, or the file
cannot be found" appears, even though I have added >nul. Is there a way of preventing that message from showing up, except making sure that there are no duplicate files and that files can be found?
cannot be found" appears, even though I have added >nul. Is there a way of preventing that message from showing up, except making sure that there are no duplicate files and that files can be found?
- 16 Apr 2017 07:12
- Forum: DOS Batch Forum
- Topic: Receiving "Missing Operand" error when launching the following script?
- Replies: 6
- Views: 6969
Re: Receiving "Missing Operand" error when launching the following script?
Also thanks for the advice, I'll make sure to edit the way I add up to a value.
- 16 Apr 2017 06:53
- Forum: DOS Batch Forum
- Topic: Receiving "Missing Operand" error when launching the following script?
- Replies: 6
- Views: 6969
Re: Receiving "Missing Operand" error when launching the following script?
Wow I didn't know that variables were case sensitive... thanks for that. It fixed my problem.
- 15 Apr 2017 15:05
- Forum: DOS Batch Forum
- Topic: Receiving "Missing Operand" error when launching the following script?
- Replies: 6
- Views: 6969
Receiving "Missing Operand" error when launching the following script?
Yeah can someone tell me why? This file is supposed to measure the size of the folder it resides in, and echo the size.
Code: Select all
setlocal enableelayedexpansion
set /a value=0
set /a sum=0
for /r %1 %%i in (*) do (
set /a value=%%~zI/1024
set /a sum=!sum!+!value!
)
echo %sum% k
pause >nul