Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfexecute and UNC

Guest
Jul 21, 2008 Jul 21, 2008
Greetings!

I need CF to make a command line call to a .exe thats on another machine. Im getting a CF error saying "the network path was not found."

CF is able to write to that machine and the directory where the .exe is via UNC path and cffile tags. Can I assume that if cffile works over UNC that cfexecute should as well?

Also, I've seen examples of cfexecute (fortas in particular) where the name attribute points to c:\windows\system32\cmd.exe as opposed to pointing to the .exe to be run. Can you not simply point the name attribute to the .exe, or do you always need to use cmd.exe and call a batch file to finally get to the .exe in question?

If so, can you pass parameters to the batch file? The .exe I need to call needs to get arguments, and I'm a little unclear as to how that might work.

TIA!
537
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 15, 2008 Aug 15, 2008
I'm now trying this via batch file. I figure I can have CF write a new batch file to get the proper params. But, thats not working either.

The batch file when called from command prompt on the same machine does what it should. When I try to run the batch file from the CF machine using cfexecute and the UNC path to the batch file, it returns the text in the batch file but doesn't execute anything.

So, I know CF can see the batch file across the UNC, its just not executing it. Any insight would be GREATLY appreicated.

cfexecute code and the result below. BTW, the C:\ColdFusion8\runtime\bin> is not part of the batch file and is beling added by CF. Not sure why or what it represents.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 15, 2008 Aug 15, 2008
LATEST
If you look at the solutions to being able to open a Access data base remotely with UNC you may see how to get to the executable on the other box but is that what you really want to do? The Coldfusion server will try to execute the remote command on itself and the not the remote box. You might look for a way to use cfexecute to execute an rsh or maybe an rexec command on the Coldfusion server to cause the execution to occur on the other box.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources