Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6716963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:47:47+00:00 2026-05-26T08:47:47+00:00

I am uploading a running a simple batch script which downloads a file from

  • 0

I am uploading a running a simple batch script which downloads a file from one server and uploads it to another. The file name is based on the previous day ie. 20111124.zip (YYYYMMDD). The script works fine on all the boxes I have tried it on, however when it is run on a colleagues windows 7 box it fails. The DATE command returns a zero. I have already tried setting the UAC to off but that did not resolve the issue. Any help would be greatly appreciated.

SETLOCAL
SET dwMONTH=%DATE:~4,2%
SET /A dwDAY=%DATE:~7,2%-1
IF %dwDAY% LSS 10 (SET dwDay=0%dwDay%)
SET dwYEAR=%DATE:~10,4%
SET dwDate=%dwYEAR%-%dwMONTH%-%dwDAY%
SET mydate=%dwYEAR%%dwMONTH%%dwDAY%
echo %mydate%
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:47:47+00:00Added an answer on May 26, 2026 at 8:47 am

    Windows 7 doesnt include a day name,
    e.g. on windows XP %date% contains “Di 25.10.2011” (im on a german computer system)
    and Win7 only “25.10.2011”,
    so your offset (7) is pointing to the wrong spot

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My Flask stops responding when uploading files or when collecting data from another server
I am running Ubuntu8.041. Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured Can't get file uploading
I am running a build script in which three executable files (100mb each) are
I'm running into an issue with different users uploading files with the same name
I am trying to create multiple triggers with only uploading one script into an
When uploading a file (jpeg) via a form in IE7 I am seeing a
While user uploading a file, is it possible to know if the uploaded file
My application is uploading the same content to two storages. Firstly, application uploads files
I've created the following simple msbuild project file, but the output is quite weird
I am connected to university Linux server from home using PuTTY. I upload entire

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.