Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a .bat file in XP Pro

Status
Not open for further replies.

Alexschmidt

IS-IT--Management
Jan 26, 2003
33
0
0
ZA
I have users which frequently access a database which autosaves the date/time in entries. I need to create a .bat file which when the user wants to access the database from the desktop icon, will first run the regular XP date/time setup program and after that run the database .exe. The idea is force the user to check his system date and time prior to entering the database. If possible a detailed explanation of the 'how to' will be appreciated. Thanks
 
Give this a ".CMD" instead of a ".BAT" extension:

rem Part of a batch/cmd file to force date/time
rem settings window to appear

RunDLL32.EXE shell32.dll,Control_RunDLL timedate.cpl

rem Add the stuff for your database application below


 
Why not
"
net time \\servername /set /yes

stuff for db app here
"

again with .cmd as per bcastner

Saves the trouble of the user messing up the time.
 
That's good, using the server. As a matter of convenience this should be done upon login.

Jon

There is much pleasure to be gained from useless knowledge. (Bertrand Russell)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top