Remotely call command line application using Delphi

1.1k views Asked by At

We're in the process of adding DFS to our network setup and have a slight groggle regarding our automation processes.

We currently have a tool that creates the folder structure when a new project is created. This can be run by any Project admin. Projects reside on a network share.

The issue is that these new network shares need to be added to the DFS namespace.

If we were running locally on the Domain Controller we could call the DFSUtil.exe application from the Delphi application.

Is there any way that we can do this from a client machine on the Domain?

4

There are 4 answers

0
Dan Kelly On BEST ANSWER

Looks like our best solution in the given timeframe will be to install the Remote Server Admin Tools on the few people with permission to create projects.

mjn - Your answer looks like it will be useful in the future, just not right now.

0
mjn On

Have you considered using WMI and The WMI Delphi Code Creator tool?

Instead of invoking DFSUtil, the Delphi app would call the underlying API functions on the remote machine.

1
Marcus Adams On

You could always create an API on the domain controller that you call from the client. With IIS, you could even create your CGI program in Delphi.

0
Remko On

You can create a share remotely using the NetShareAdd api. Delphi declarations can be found in the Jedi Apilib.