When I Use Batch To Move Files From A Linux Computer To An Win2000 One, Why Is There An 11 Hr Difference?

My co-worker and I transfer three files from our Linux computer to our Windows 2000 SP4 computer about once an hour.
One file we pull over to the 2000 computer using a program. We then run a batch file that renames that file by looking for *.pdf–there’s only one PDF in the folder, so this works well. Then this first batch file calls a second batch file.
The second batch file copies the remaining two files from the Linux computer to the Windows computer. Then, it renames both of these files.
The first file (pulled over with software) has the correct date.
PROBLEM: The two files pulled via batch and renamed show a “Modified” date (in the folder) that is 11 hours behind the actual time. It is always 11 hours difference.
We create the original files (on the Linux computer) just before transfer. Any ideas what might be causing this?

2 comments to When I Use Batch To Move Files From A Linux Computer To An Win2000 One, Why Is There An 11 Hr Difference?

  • anshu

    First thing to check is the locale settings for Windows and Linux. If there is a time or zone difference then there is very possibility for the issue to occur.
    In this scenario, the file downloaded by some software does not create any problem as the software just pulls over the file with the file attributes from the source. Software does not allow file to directly interact with system. However, with batch file, it directly interacts with system and takes the destination system locale.

  • Daniel C

    Check the time zone on the two machines.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>