Search found 13 matches

by imagination
28 May 2014 01:36
Forum: DOS Batch Forum
Topic: list all folders and subfolders to an list.txt file
Replies: 2
Views: 3604

list all folders and subfolders to an list.txt file

Good morning all, I am having an question I need an batch script that does the following thing. it needs to loop true an root directory and then put all its folders and their subfolders into an file. Only it needs to be in an specific format. I will show you the code that i already have for the file...
by imagination
26 May 2014 05:58
Forum: DOS Batch Forum
Topic: File Comparison by Date Time
Replies: 20
Views: 15584

Re: File Comparison by Date Time

Thank you for the anwer And yes you are correct about the date conversion. I will implant that and will let you know if that solves it Thank you verry much Aacini Its solved now It is comparing in the correct way and if e:\Pandoraflyff\Resclient\file.res is greater then e:\Pandoraflyff\Patcher he on...
by imagination
26 May 2014 04:51
Forum: DOS Batch Forum
Topic: File Comparison by Date Time
Replies: 20
Views: 15584

Re: File Comparison by Date Time

I think you want not to compare "a list of files in 1 dir to a list of files in an other dir". If you want to "review a list of files in 1 dir, and compare each file vs. the file with same name in another dir", then the code below do that: @echo off SETLOCAL EnableDelayedExpansi...
by imagination
26 May 2014 04:07
Forum: DOS Batch Forum
Topic: File Comparison by Date Time
Replies: 20
Views: 15584

Re: File Comparison by Date Time

Hi, imagination ! You can use this: robocopy "%folder1%" "%folder2%" *.* /E /IS /XL /L /NJS /NJH /NDL There is no copy operation (just listing). For more functionality use piping to 'find' or simply parsing with "tokens=1,2*". You can add /TS switch for wieving the dat...
by imagination
26 May 2014 03:47
Forum: DOS Batch Forum
Topic: File Comparison by Date Time
Replies: 20
Views: 15584

Re: File Comparison by Date Time

Well that didnt worked also Here is an image taken of the outcome http://i.imgur.com/4yZKdR9.png As you can see its checking 1 file to all files Thats with this code @echo off SETLOCAL EnableDelayedExpansion REM GETTING FILES IN RESCLIENT FOR /R e:\Pandoraflyff\Resclient %%A IN (*.*) do ( SET Origin...
by imagination
26 May 2014 03:25
Forum: DOS Batch Forum
Topic: File Comparison by Date Time
Replies: 20
Views: 15584

Re: File Comparison by Date Time

Depending upon what exactly you are wanting to do with the output and upon knowing the filenames and path you may even get away with something as simple as this! @Echo off & SetLocal (Set _SRC=E:\Pandoraflyff\Patcher) (Set _DST=E:\Pandoraflyff\Resclient) For /f "Tokens=1* Delims=->" %...
by imagination
26 May 2014 03:20
Forum: DOS Batch Forum
Topic: File Comparison by Date Time
Replies: 20
Views: 15584

Re: File Comparison by Date Time

Hmm i have tried it out. However i am now getting the last file in both for loops and not all files The output is now only file e:\Pandoraflyff\Resclient\Word\WdVolcaneYellow\Pandora_00.res is older then e:\Pandoraflyff\Patch\Word\WdVolcaneYellow\Pandora_00.res.gz While in fact it needs to compare a...
by imagination
26 May 2014 01:34
Forum: DOS Batch Forum
Topic: File Comparison by Date Time
Replies: 20
Views: 15584

File Comparison by Date Time

Good morning All, I am having some trouble of comparing an list of files in 1 dir to an list of files in an other dir by date time What i have so far is this @echo off SETLOCAL EnableDelayedExpansion REM GETTING FILES IN RESCLIENT FOR /R e:\Pandoraflyff\Resclient %%A IN (*.*) do ( SET Original=%%~TA...
by imagination
25 May 2014 05:04
Forum: DOS Batch Forum
Topic: creating an list.txt imports also an Non-Printable char
Replies: 11
Views: 7866

Re: creating an list.txt imports also an Non-Printable char

Well in fact it does take longer then 1 minute to change an file.
So with the %%~TA it should work

As for the folders i think the Gzip command you provided should be enough.

I will do some testing and will let you know about it.
by imagination
24 May 2014 15:47
Forum: DOS Batch Forum
Topic: creating an list.txt imports also an Non-Printable char
Replies: 11
Views: 7866

Re: creating an list.txt imports also an Non-Printable char

If you would have posted it completely, then it would have been easier to find the problem. I cant show the source of the c++ file cause i dont have access to the source. So then youre right its like searching for an needle in an haystack. About the comparison both folders are at the same drive but...
by imagination
24 May 2014 14:23
Forum: DOS Batch Forum
Topic: creating an list.txt imports also an Non-Printable char
Replies: 11
Views: 7866

Re: creating an list.txt imports also an Non-Printable char

Thank you all for your answers. I have solved the problem after 2 days. It was really stupid In my Batch file i have this echo C:\\RESCLIENT>>%LOCAL_RESCLIENT_DIR%\list.txt this produces in the list .txt this C:\\RESCLIENT (this should be done like so cause the c++ program change the \\ to / So i di...
by imagination
24 May 2014 01:58
Forum: DOS Batch Forum
Topic: creating an list.txt imports also an Non-Printable char
Replies: 11
Views: 7866

Re: creating an list.txt imports also an Non-Printable char

When i am calling the program that is reading the list.txt its adding it here

Image

Before the forward slash is the DLE character

Also when i am using an c++ program to make the list i dont have any problems.
So the problem lies with the batch file.
by imagination
24 May 2014 01:37
Forum: DOS Batch Forum
Topic: creating an list.txt imports also an Non-Printable char
Replies: 11
Views: 7866

creating an list.txt imports also an Non-Printable char

Goodmorning all, I am having some troubles with the following code @echo off REM HERE WE ARE Making the List.txt that contains all the files that will be patched with the Patcher. set LOCAL_RESCLIENT_DIR=e:\folder\Resclient CD %LOCAL_RESCLIENT_DIR% setlocal EnableDelayedExpansion echo Ver:24 >%LOCAL...