Computing.Net > Forums > Windows XP > XP Pro - Creating a .bat file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

XP Pro - Creating a .bat file

Reply to Message Icon

Name: Abes
Date: October 27, 2003 at 10:33:22 Pacific
OS: XP Pro
CPU/Ram: 12ghz 512MB
Comment:

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 acces 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



Sponsored Link
Ads by Google

Response Number 1
Name: CyberSlug
Date: October 27, 2003 at 11:13:02 Pacific
Reply:

REM Here's a batch file tested on XP Pro
@echo off
cmd /c start control.exe timedate.cpl
ECHO After you check the time,
pause
cmd /c start C:\Windows\system32\calc.exe

Of course, change calc.exe to the database.exe


0

Response Number 2
Name: CyberSlug
Date: October 27, 2003 at 11:22:04 Pacific
Reply:

Oh, if you want an explaination:

1) "control.exe timedate.cpl" launches the regular date/time setup program

2) The commands are preceded by cmd /c start so that the "pause" command works right and prevents both programs from immediately launching....


0

Response Number 3
Name: Abes
Date: October 27, 2003 at 20:20:24 Pacific
Reply:

Thanks Guys, just what I wanted.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: XP Pro - Creating a .bat file

How can I create a .bat to launch.. www.computing.net/answers/windows-xp/how-can-i-create-a-bat-to-launch/54310.html

Creating a batch file in XP www.computing.net/answers/windows-xp/creating-a-batch-file-in-xp/48561.html

Saving location for a bat file ?? www.computing.net/answers/windows-xp/saving-location-for-a-bat-file-/90524.html