Search found 22 matches

by cumhur_28
17 Nov 2014 13:00
Forum: DOS Batch Forum
Topic: Moving Folder cyclic copy error
Replies: 13
Views: 12489

Re: Moving Folder cyclic copy error

nevermind guys. take care yourself.


bye
by cumhur_28
17 Nov 2014 09:16
Forum: DOS Batch Forum
Topic: Moving Folder cyclic copy error
Replies: 13
Views: 12489

Re: Moving Folder cyclic copy error

my friend i have english language problem and i want to explain all the things but my english is not enough to explain that perfectly. Find someone who speaks better English then you to translate or find a website that is in your native language. i explained very basicly. how can i explain this????...
by cumhur_28
17 Nov 2014 06:09
Forum: DOS Batch Forum
Topic: Moving Folder cyclic copy error
Replies: 13
Views: 12489

Re: Moving Folder cyclic copy error

How can we solve this problem The actual details of the task are needed to write a script that will work. If you tell your partner to go to the hardware store and buy you 3 bolts, do you think they will come home with the 3 different sized bolts that you wanted: two brass ones in metric, and one st...
by cumhur_28
17 Nov 2014 05:40
Forum: DOS Batch Forum
Topic: Moving Folder cyclic copy error
Replies: 13
Views: 12489

Re: Moving Folder cyclic copy error

i want to move 397700101201410, 397200101201410 files to 1blok ---------------this folders contains pdf files. i want to move 407700101201410, 417200101201410 files to 2blok ---------------this folders contains pdf files. It seems as though you haven't given full details of the task. This solves th...
by cumhur_28
17 Nov 2014 03:26
Forum: DOS Batch Forum
Topic: Moving Folder cyclic copy error
Replies: 13
Views: 12489

Moving Folder cyclic copy error

Hi; I have folders like that. and there are not empty. it contains pdf files. for example this files in c:\test 397700101201410 397200101201410 407700101201410 417700101201410 i created 2 folders in c:\test like "1blok and 2blok" i want to move 397700101201410, 397200101201410 files to 1bl...
by cumhur_28
31 Oct 2014 08:26
Forum: DOS Batch Forum
Topic: Remove zero if file name start with zero batch
Replies: 7
Views: 8224

Re: Remove zero if file name start with zero batch

foxidrive wrote:Test this on a directory of test folders - if any of them start with two or more 0 then let me know.

Code: Select all

@echo off
setlocal enabledelayedexpansion
for /d %%a in (0*) do (
   set "folder=%%~nxa"
   ren "%%a" "!folder:~1!"
)



thank you so much it works. :)
by cumhur_28
31 Oct 2014 08:15
Forum: DOS Batch Forum
Topic: Remove zero if file name start with zero batch
Replies: 7
Views: 8224

Re: Remove zero if file name start with zero batch

firstly thanx for your helps and sorry for my english i actually means, remove directories first character

thanx for your helps again


Image

to 52014
by cumhur_28
31 Oct 2014 04:44
Forum: DOS Batch Forum
Topic: Remove zero if file name start with zero batch
Replies: 7
Views: 8224

Remove zero if file name start with zero batch

Hello Everbody
Thanx for your previous helps. I have another question.
I have file names and like months 052014,102014 i need if the first character is zero, remove this character.
İnput:052014
Output52014
like that.
is taht any way to do it.

Thanx for your helps


Cumhur
by cumhur_28
07 Aug 2014 07:36
Forum: DOS Batch Forum
Topic: Add Line to txt batch
Replies: 21
Views: 16318

Re: Add Line to txt batch

1- i cant see original input file i only see output file with two blanks How is that possible? You would not be able to run the batch file if you were not able to see the input file. Thanx for your helps. actually i guess i misunderstand your question but finaly i did it @echo off setlocal enablede...
by cumhur_28
06 Aug 2014 23:46
Forum: DOS Batch Forum
Topic: Add Line to txt batch
Replies: 21
Views: 16318

Re: Add Line to txt batch

In order to fix this we need to know which of these scenarios is true. 1) Does the original input file that just has the numbers in it have two spaces at the end of each line? 2) Do you have two spaces at the end of this line of code? >>"newfile.txt" echo xxxxxxxx_!i:~-2!^|%%a 1- i cant s...
by cumhur_28
06 Aug 2014 13:01
Forum: DOS Batch Forum
Topic: Add Line to txt batch
Replies: 21
Views: 16318

Re: Trim space characters problem

i have txt files like. xxxxxxxx_01|54545454548488 xxxxxxxx_02|89494984694964 each end of the line has 2 space character i want to remove this space character. From your previous posts on this it may be that your batch file has spaces that are causing the issue. It would be better to fix the batch f...
by cumhur_28
06 Aug 2014 08:35
Forum: DOS Batch Forum
Topic: Add Line to txt batch
Replies: 21
Views: 16318

Re: Trim space characters problem

Squashman wrote:I am going to move this question to your previous thread because it looks to be related to your previous thread.



thank you my friend
by cumhur_28
06 Aug 2014 07:50
Forum: DOS Batch Forum
Topic: Add Line to txt batch
Replies: 21
Views: 16318

Trim space characters problem

Hi; i have txt files like. xxxxxxxx_01|54545454548488 xxxxxxxx_02|89494984694964 each end of the line has 2 space character and some program generates and i wont reach that to change it. i want to remove this space character. and i want to show this file in new txt file. pls help thanx cumhur
by cumhur_28
05 Aug 2014 00:14
Forum: DOS Batch Forum
Topic: Add Line to txt batch
Replies: 21
Views: 16318

Re: Add Line to txt batch

@echo off setlocal EnableDelayedExpansion set i=100 for /F "delims=" %%a in (theFile.txt) do ( set /A i+=1 echo xxxxxxxx_!i:~-2!^|%%a ) >>"newfile.txt" echo %%a http://www.sherv.net/cm/emo/angry/bang-head-on-desk.gif i promise this is my last question when i used this batch i wi...
by cumhur_28
04 Aug 2014 14:17
Forum: DOS Batch Forum
Topic: Add Line to txt batch
Replies: 21
Views: 16318

Re: Add Line to txt batch

thanx for your help finally you did it.
this forum is the best for batch's

thanx


cumhur