- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have a windows application sometimes runs as a batch
and gets input by reading redirected data as standard
input instead of getting screen input
pgmname.exe
How can i determine if the redirect specification is there. I tried to use inquire to determine if the file exists using
fname='CONIN$'
inquire (file=fname,exist=exists)
but it always returns true.
and gets input by reading redirected data as standard
input instead of getting screen input
pgmname.exe
How can i determine if the redirect specification is there. I tried to use inquire to determine if the file exists using
fname='CONIN$'
inquire (file=fname,exist=exists)
but it always returns true.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check out GetFileType API. GetFileType(GetStdHandle(STD_INPUT_HANDLE)) should (didn't try it) tell you whether it's a file (FILE_TYPE_DISK) or keyboard stream (FILE_TYPE_CHAR).
Jugoslav
Jugoslav

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page