Hi, I'm fairly new with batch files and the syntax, but understand the logic of programming for the most part. I have 2 programs at work that both use pervasive databases, but they use different versions, Primavera P3 and Timberline Accounting. If one of the programs are running, i must close it and the database before i can open the other, and I would like to create a batch file that will do this for me instead of doing it manually. So here is effectively what i need it to do:
\\This would be the batch file to open Primavera P3
If (tasklist contains "w3dbsmgr.exe") then
Start "C:\Program Files\Pervasive Software\PSQL\bin\pvkillwg.exe"
End If
Start "C:\P3WIN\P3PROGS\P3.exe" /user:chuck
Exit
If someone could help me figure out the correct syntax to make this work, I believe I could figure out the other one.
Thanks,
Chuck