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>
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: 2% [?]
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 [email protected]
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 »
How to Protect an Email Account from SPAM
Most of us get SPAM every day. Some of us get more and some little. Even a newly created email account will begin to receive spam just after a few days of it’s creation. Many times we …
NETWORK HACKS »
How to Find the IP Address of a Remote Computer
Most of you may be curious to know how to find the IP address of your friend’s computer or to find the IP address of the person with whom you are chatting in Yahoo messenger or Gtalk. …
PC SECURITY »
Beware of Common Internet Scams and Frauds
The term Internet Scam or Internet Fraud refers to any type of fraud scheme that uses one or more online services to conduct fraudulent activities. Internet fraud can take place on computer programs such as chat rooms, …
VIRUS CREATION »
A Virus Program to Disable USB Ports
In this post I will show how to create a simple virus that disables/blocks the USB ports on the computer (PC). As usual I use my favorite C programming language to create this virus. Anyone with …
XP HACKS »
How to Make Invisible Password Protected Folder
Do you want to password protect your folder? Do you want to make it invisible so that it remains unnoticed by the normal users? Well here is a way to do that. In this post I …
Categories
Blogroll
Recent Comments
Most Commented
Most Popular
Log In | Entries (RSS) | Comments (RSS) | Sitemap | Arthemia Premium theme by Michael Jubel