Search found 19 matches
- 25 Sep 2014 11:08
- Forum: DOS Batch Forum
- Topic: "more" command is not executed at once in case the file is t
- Replies: 12
- Views: 9248
Re: "more" command is not executed at once in case the file
I want to extract some info about the photo like the date/time taken and the brand/model of the camera...
- 25 Sep 2014 10:07
- Forum: DOS Batch Forum
- Topic: "more" command is not executed at once in case the file is t
- Replies: 12
- Views: 9248
Re: "more" command is not executed at once in case the file
My code is the below one : @echo off cd /d "%~dp0" for %%b in (DSF_5105_nikon.jpg) do ( more %%b > %%b.txt ) pause The DSF_5105_nikon.jpg has 6.6 MB size. As a result the more command cannot be executed at once and the -- More (41%) -- is displayed at the bottom of %%x.txt which means that...
- 25 Sep 2014 05:29
- Forum: DOS Batch Forum
- Topic: "more" command is not executed at once in case the file is t
- Replies: 12
- Views: 9248
Re: "more" command is not executed at once in case the file
Actually, what I am doing is to run more command for a JPG file which is more than 6 Kbytes. When I run it, the 41% of more command is executed and it is demanded to press a button in order to continue with the running of the command. What I need is to use this command in a batch file but the "...
- 25 Sep 2014 04:59
- Forum: DOS Batch Forum
- Topic: "more" command is not executed at once in case the file is t
- Replies: 12
- Views: 9248
"more" command is not executed at once in case the file is t
Hello,
In case I run "more" command for a certain file which is too big, the command is not executed at once but "pressing a button" is needed.
Does anybody know any trip on how to overcome this within a batch file?
Thanks
Best Regards,
Nikos
In case I run "more" command for a certain file which is too big, the command is not executed at once but "pressing a button" is needed.
Does anybody know any trip on how to overcome this within a batch file?
Thanks
Best Regards,
Nikos
- 20 Sep 2014 09:27
- Forum: DOS Batch Forum
- Topic: Start the writing in a text file from a specific column
- Replies: 10
- Views: 6950
Re: Start the writing in a text file from a specific column
Yes aGerman this was what i wanted
I just need one explanation regarding one line of your code:
set "string=!string:~0,%n%!"
Does this mean that the string will begin from the zero position up to nth?
Thanks
Regards,
Nikos
I just need one explanation regarding one line of your code:
set "string=!string:~0,%n%!"
Does this mean that the string will begin from the zero position up to nth?
Thanks
Regards,
Nikos
- 20 Sep 2014 08:39
- Forum: DOS Batch Forum
- Topic: Start the writing in a text file from a specific column
- Replies: 10
- Views: 6950
Re: Start the writing in a text file from a specific column
Hi aGerman, Its not that easy because the way the I need to use the "set position" in the text file is more complicated. For your better understanding, I need my final output to be like below: blabla__________renamed to nikos blablabla________renamed to nikos1 bla_____________renamed to ni...
- 20 Sep 2014 08:19
- Forum: DOS Batch Forum
- Topic: Start the writing in a text file from a specific column
- Replies: 10
- Views: 6950
Re: Start the writing in a text file from a specific column
Hello aGerman, Actually I want to write in an empty text file ,not at the beginning of each line but lets say at the 10th column: Nikos --> At the beginning of the line __________Nikos --> at the 10th column of the line(consider the underscores as spaces) I just wonder if there any command with whic...
- 20 Sep 2014 07:39
- Forum: DOS Batch Forum
- Topic: Start the writing in a text file from a specific column
- Replies: 10
- Views: 6950
Start the writing in a text file from a specific column
Hello,
Is there any command with which you can start writing from a specific column/position in a text file?
I couldn't find one so far...
Thanks
Nikos
Is there any command with which you can start writing from a specific column/position in a text file?
I couldn't find one so far...
Thanks
Nikos
- 16 Sep 2014 14:51
- Forum: DOS Batch Forum
- Topic: How can I set a value to %%variable in the for /L loop?
- Replies: 19
- Views: 14693
Re: How can I set a value to %%variable in the for /L loop?
Hello All, I had a further googling on this issue and I found the below pretty cool way of breaking a nested for /L loop with using GOTO: for %%a in (1,2,3) do ( echo Top-level loop: %%a set break= for /L %%b in (4,5,6) do if not defined break ( echo Nested loop: %%a-%%b if %%b == 4 ( echo Breaking ...
- 15 Sep 2014 01:09
- Forum: DOS Batch Forum
- Topic: How can I set a value to %%variable in the for /L loop?
- Replies: 19
- Views: 14693
Re: How can I set a value to %%variable in the for /L loop?
Hello aGerman, Thanks for your reply. I had a search in the net before posting and I knew that it is really difficult to break the for /L loop. For this reason I came up with the idea to change the %%variable value inside the for /L loop, but as you wrote this is not possible. Unfortunately, the GOT...
- 14 Sep 2014 15:00
- Forum: DOS Batch Forum
- Topic: How can I set a value to %%variable in the for /L loop?
- Replies: 19
- Views: 14693
How can I set a value to %%variable in the for /L loop?
Hello, I need to break a for /L loop violently. The only way to do this is with goto label but this is not very convenient in my current script. So what I was thinking is to somehow set the %%variable equal to the end value, but I did not make it up to now. for /l %%z in (1,1,5) do ( if not exist !h...
- 07 Sep 2014 04:53
- Forum: DOS Batch Forum
- Topic: Read the directory of a bat file when you run it as admin
- Replies: 1
- Views: 2103
Read the directory of a bat file when you run it as admin
Hello, I am trying to create a new file and save some info in it like below: . . . if exist %user% ( echo The username you provided already exists!! pause >nul goto create )else ( md "C:\Users\nikos\Desktop\Batch_Programming\Database\%user%" cd "C:\Users\nikos\Desktop\Batch_Programmin...
- 25 Jun 2014 10:23
- Forum: DOS Batch Forum
- Topic: File process under each subfolder of a certain path
- Replies: 2
- Views: 2717
Re: File process under each subfolder of a certain path
Hello foxidrive,
This works...
Thank you very much!!!
Nikos
This works...
Thank you very much!!!
Nikos
- 25 Jun 2014 06:58
- Forum: DOS Batch Forum
- Topic: File process under each subfolder of a certain path
- Replies: 2
- Views: 2717
File process under each subfolder of a certain path
Hello, I want to create a bat file with which a specific action will be performed under all the subfolders of a certain path. I have already made a file with which I can execute my action under a specific folder(C:\IPSL\T125\LM55786_UUS\SIPSTK\PARSING_MIDDLE\PARSING_MIDDLE10\main) individually: echo...
- 05 Mar 2013 01:24
- Forum: DOS Batch Forum
- Topic: build a script via batch
- Replies: 4
- Views: 4725
Re: build a script via batch
Hello, Thanks for the responses!! The answer was pretty easy but sometimes the mind stops. I had to check what the buil_all command doing as Queue pointed...Thanks for this Now i want to execute the build_all command to all files that have a specific file name(let say load.ctl) under a path that con...