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 6709817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:55:37+00:00 2026-05-26T07:55:37+00:00

I have a backup files in folder path is like this C:\Folder the files

  • 0

I have a backup files in folder path is like this C:\Folder

the files are like this in below imageenter image description here

the file name like this…20111011 means today date
095523 means time

and i have a date time picker and i have button when the user select the value in datetime picker and select the button ,

I need to compare the date time picker value with the file name stored in that folder , and then if date time picker value matches the part of the folder name (backup-{this is part}) i want to extract zip file into the given folder ….

how can i get compare date time picker value with the folder name and extract the files in to given path ….

  • 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-26T07:55:38+00:00Added an answer on May 26, 2026 at 7:55 am

    In .net Directory.GetFiles method used to get files from specific path.

    Below code mentioned in link make changes in foreach loop as you need. This loop give you filename and you can compare it.

    public static void ProcessDirectory(string targetDirectory) 
    {
        // Process the list of files found in the directory.
        string [] fileEntries = Directory.GetFiles(targetDirectory);
        foreach(string fileName in fileEntries)
          Do work here which you need.
    }
    

    Check this link for datetimepicker value

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

Sidebar

Related Questions

I have path like this...C:\restore\restoredb\ In that path i have files like this.. backup-2011-10-12T17-16-51.zip
I have a full MS SQL Backup file that I would like to extract
i have this script: BACKUP DATABASE timeclockplus TO DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Backup\backup.bak'
$filename= Backup.tar; // The name (and optionally path) of the dump file $ftp_server =
I have some files I'd like to add to have them as a backup.
I have a folder with a few files in it; I like to keep
I have created the below batch file but no success. @ECHO OFF @ECHO Backup
How can you find out what transaction log backup files have been restored using
I have a backup server that automatically backs up my live site, both files
I have an Oracle database backup file (.dmp) that was created with expdp .

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.