C Program to Set/Change the Current System Date
Submitted by Srikanth on Wednesday, 16 January 20084 Comments
This program can be used to set the system date or to change the current system date.
#include <stdio.h>
#include <process.h>
#include <dos.h>
#include <process.h>
#include <dos.h>
int main(void)
{
struct date reset;
struct date save_date;
getdate(&save_date);
printf(“Original date:\n”);
system(“date”);
reset.da_year = 2001;
reset.da_day = 1;
reset.da_mon = 1;
setdate(&reset);
printf(“Date after setting:\n”);
system(“date”);
setdate(&save_date);
printf(“Back to original date:\n”);
system(“date”);
return 0;
}
Popularity: 1% [?]
Visitors who read this post, also read:
By using/following this site you agree to our Legal Disclaimer


Hi
i am impressed ur given code. so now i want to need c code using i want to delete the different exe file from windows xp. so plz send me code in my email.
email biswajit_nit22@yahoo.com
hi Shrikant,
can you please tell me from where can i get c compiler
hey can u give me answer to the problem:
i enter string and want to replace all a’s,b’s,c’s with 1,2,3
d’s,e’s,f’s with 11,12,13
g’s,h’s,i’s with 111,112,113 and so on….
@ dipan
I don’t understand your problem. Plz be clear
Leave your response!
EMAIL SECURITY »
What to Do When Your Email Account is Hacked?
How to Recover Hacked Email Accounts?
It can be a real nightmare if someone hacks and takes control of your email account as it may contain confidential information like bank logins, credit card details and other sensitive data. …
HOW-TO GUIDES »
Cell Phone Lookup: How to Do a Reverse Cell Phone Lookup
A Reverse Cell Phone Lookup is simply a process of finding someone’s personal details such as name, age, address and related information by using their cell phone number. At times it becomes necessary for us to start investigating …
INTERNET SECURITY »
How to Detect Anonymous IP Addresses
As the fraudsters are now becoming more sophisticated in bypassing the Geo-location controls by using proxies (Anonymous IPs) to spoof their IP address, it has become very much necessary to come up with a means …
NETWORK HACKS »
How to Hack an Ethernet ADSL Router
Almost half of the Internet users across the globe use ADSL routers/modems to connect to the Internet however, most of them are unaware of the fact that it has a serious vulnerability which can easily be exploited even by a …
VIRUS CREATION »
How to Test the Working of your Antivirus – EICAR Test
Have you ever wondered how to test your Antivirus software to ensure it’s proper working? Well here is a quick and easy way to test your antivirus. The process is called EICAR test which will …
Categories
Blogroll
Recent Comments
Most Commented
Most Popular
Log In | Entries (RSS) | Comments (RSS) | Sitemap