WIndows NT Process ID
Posted by admin on 26 Sep 2008 at 04:12 AM
$5.00
Operating Platforms / Microsoft Windows
Hi, Chris
I'm not sure if you're the right person to be asking this question, but I'm sure you'll tell me if you're not !
I have the following DOS Batch file running on a WIndows NT Server
SALESV2.BAT
CALL CDMOLAPI %1
This calls another DOS Batch File CDMOLAPI.BAT
CDMOLAPI.BAT
call detoken %1 D:\COMMON\cbs.tok > %1.tmp
call olapicmd < "%1.tmp" > "%1.tmp.log"
I execute the main job as follows :
SALESV2.BAT SALESV2.CBS
Everything works correctly, a file SALESV2.CBS.TMP is created and the job completes successfully.
However there is a chance that this job may be run by 2 different people at the same time, in which case there could be confusion over which SALESV2.CBS.TMP to use.
I was wondering if there was any commands I could use that would be able to extract the Process ID of the job being run & I could use this in the name of the file e.g. SALESV2.CBS.P123 (instead of SALESV2.CBS.TMP) ?
I hope I'm making sense so thanks for any help you might come up with
Cheers
John
I'm not sure if you're the right person to be asking this question, but I'm sure you'll tell me if you're not !
I have the following DOS Batch file running on a WIndows NT Server
SALESV2.BAT
CALL CDMOLAPI %1
This calls another DOS Batch File CDMOLAPI.BAT
CDMOLAPI.BAT
call detoken %1 D:\COMMON\cbs.tok > %1.tmp
call olapicmd < "%1.tmp" > "%1.tmp.log"
I execute the main job as follows :
SALESV2.BAT SALESV2.CBS
Everything works correctly, a file SALESV2.CBS.TMP is created and the job completes successfully.
However there is a chance that this job may be run by 2 different people at the same time, in which case there could be confusion over which SALESV2.CBS.TMP to use.
I was wondering if there was any commands I could use that would be able to extract the Process ID of the job being run & I could use this in the name of the file e.g. SALESV2.CBS.P123 (instead of SALESV2.CBS.TMP) ?
I hope I'm making sense so thanks for any help you might come up with
Cheers
John
Accepted Answer:
| Answer provided by admin on 26 Sep 2008 at 04:12 AM Hi John, |
| Rating: * * * * * Awarded: $5.00 |
Ask a Question
Most Recent Questions
Most Recent Answers
Home Page
Login
Register
Information Technology
Programming Languages
Database
Graphic Design
Operating Platforms
- Embedded Systems
- IPhone and PDA
- Linux
- Macintosh (Darwin)
- Microsoft Office
- Microsoft Windows
- OpenOffice
- UNIX
Hardware and Networking
Math and Science
Biology and Geology
Math and Statistics
Chemistry
Physics
Engineering

Are you an information
Most Recent Questions
Most Recent Answers
Home Page
Login
Register
Information Technology
Software, Hardware, Design
Programming LanguagesDatabase
Graphic Design
Operating Platforms
- Embedded Systems
- IPhone and PDA
- Linux
- Macintosh (Darwin)
- Microsoft Office
- Microsoft Windows
- OpenOffice
- UNIX
Hardware and Networking
Math and Science
Homework Help
Biology and GeologyMath and Statistics
Chemistry
Physics
Engineering
Are you an information
technology or
math/science expert?
You can earn money by
providing answers to questions
at AnswerArchive.com.
Learn How