Start .exe file and automatically “press enter for ”Save“” in SAS

Accepted Solution Solved
Reply
Learner
Posts: 1
Accepted Solution

Start .exe file and automatically “press enter for ”Save“” in SAS

I have a SAS program I would like to schedule, so we don't have to run it manually.

 

In the program we call an executable (reg.exe), like this:

 

X CALL "K:\reg.exe";

 

The executable opens a standard windows save-dialog and all we need to do is press save, which will save an xml-file. The save-dialog already opens in the correct directory.

 

What I would like is to somehow pass the instruction on, using code, to "press save", so the program can move on and work with the saved xml-file.

 

Is this possible somehow?

 

Thanks for your help!


Accepted Solutions
Solution
‎11-16-2017 05:54 AM
Super User
Posts: 9,339

Re: Start .exe file and automatically “press enter for ”Save“” in SAS

Look for a commandline option for reg.exe that suppresses the dialog, and use it. Any well programmed utility has such an option (eg "rm -f" on UNIX).

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code

View solution in original post


All Replies
Solution
‎11-16-2017 05:54 AM
Super User
Posts: 9,339

Re: Start .exe file and automatically “press enter for ”Save“” in SAS

Look for a commandline option for reg.exe that suppresses the dialog, and use it. Any well programmed utility has such an option (eg "rm -f" on UNIX).

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 90 views
  • 0 likes
  • 2 in conversation