Search found 20 matches: shellexec

Return to advanced search

Re: How to include hbCurl?

Dear Otto,

> What are the disadvantages of shellExec()?

I guess the only problem is that the user does not have curl.exe installed or at the right path
by Antonio Linares
Sun Mar 03, 2024 8:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to include hbCurl?
Replies: 13
Views: 2937

Re: How to include hbCurl?

... help. While I was looking for a solution yesterday to make cUrl common in my desktop program, I then tried a solution with the command prompt and shellExecute. That works well. What are the disadvantages of shellExec()? I have been using 7Zip in this way for years. On the whole, the path with ...
by Otto
Sun Mar 03, 2024 8:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to include hbCurl?
Replies: 13
Views: 2937

Re: creating a new function HtmlToRtf()

One could install pandoc and call it with shellexec("C:\html>pandoc tabelle.html -o tabelle.rtf"). Then, to the code you get in tabelle.rtf, insert your RTF header: {\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1031{\fonttbl{\f0\fnil\fcharset0 ...
by Silvio.Falconi
Fri Feb 16, 2024 11:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: creating a new function HtmlToRtf()
Replies: 3
Views: 284

Re: creating a new function HtmlToRtf()

One could install pandoc and call it with shellexec("C:\html>pandoc tabelle.html -o tabelle.rtf"). Then, to the code you get in tabelle.rtf, insert your RTF header: {\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1031{\fonttbl{\f0\fnil\fcharset0 ...
by Otto
Thu Feb 15, 2024 11:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: creating a new function HtmlToRtf()
Replies: 3
Views: 284

Re: Active Directory

Hello Natter,
Maybe you can't run Powershell scripts with shellexec?
Then save the values to disk and read with memoread().
Best regards,
Otto
by Otto
Thu Oct 14, 2021 8:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Active Directory
Replies: 5
Views: 492

Re: shellexec or winexec

Hello,
thank you all for your help.
I will test all the solutions on the weekend.
Best regards
Otto
by Otto
Fri Dec 06, 2019 6:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: shellexec or winexec
Replies: 5
Views: 866

Re: shellexec or winexec

To run a second program in the same directory

Code: Select all  Expand view
#include "FiveWin.ch"


FUNCTION Main()
        LOCAL   cPathProgr := cFilePath( GetModuleFileName( GetInstance() ) )
       
        WinExec( cPathProgr + "PROGR2.EXE" )
RETURN NIL
by MaxP
Fri Dec 06, 2019 11:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: shellexec or winexec
Replies: 5
Views: 866

Re: shellexec or winexec

function MyRun( cComando, nStyle, lWait, lShowResult ) local oShell, nRetorno IF valtype( nStyle ) != "N" nStyle := 0 ENDIF IF ValType( lWait ) != "L" lWait := .T. ENDIF IF ValType( lShowResult ) != "L" lShowResult := .F. ENDIF oShell := CreateObject( "WScript.Shel...
by MGA
Fri Dec 06, 2019 11:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: shellexec or winexec
Replies: 5
Views: 866

Re: shellexec or winexec

Is that what you mean ?

cPt:=CurDrive()+':\'+CurDir()
SHELLEXECUTE( 0, 0, cPt+"\"+MyFile, 0, 0, 1)
by Natter
Fri Dec 06, 2019 9:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: shellexec or winexec
Replies: 5
Views: 866

Re: shellexec or winexec

Hello,
as a workaround I tried with a bat-file.

cd\
cd xwinhotel
call xwinhotel.exe

This is working.
Best regards
Otto
by Otto
Fri Dec 06, 2019 9:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: shellexec or winexec
Replies: 5
Views: 866

shellexec or winexec

Hello,
I would need an example of how to use shellexec or winexec to run a program in the program's directory.

Best regards
Otto
by Otto
Fri Dec 06, 2019 6:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: shellexec or winexec
Replies: 5
Views: 866

Re: Server vs Notebook as Server for FW programms

... I have Powershells to do the setup of the SERVER. We install WINDOWS and configure the server in less than 1 hour. The powershells are called with shellexec from a Fivewin program menu driven. This way every server has the same setup. 4). How large is the application ? Does one application "do ...
by Otto
Thu Jun 07, 2018 3:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Server vs Notebook as Server for FW programms
Replies: 44
Views: 16839

Re: URLDownloadToFile

Once last question....

I use ShellExecute() to open the url.
Is there any way to not have the browser show to the user?

I tried setting the last parameter to 0 but it still shows.

ShellExec(0,,"Http.......",,,0)
by Jeff Barnes
Tue Nov 03, 2015 7:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: URLDownloadToFile
Replies: 16
Views: 4027

Re: Extract data from an open file is it possible?

Roman and James:

Tried the program you suggested and it will copy a file even though being used by others. Very nice. This will make my life easier. Got it working with shellexec(). Now on to building my fake networking program. :D
by hag
Thu Dec 09, 2010 12:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Extract data from an open file is it possible?
Replies: 8
Views: 1779

shellexecute

Running shellexec("exe") from a program in directory #1. To Run an exe in another directory #2.
After the exe is closed in directory #2 i need to change a variable in directory #1.
How can I find out when the exe is closed in directory #2 from directory #1.

Thansk always for the help
by hag
Wed Dec 01, 2010 5:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: shellexecute
Replies: 2
Views: 623
Next

Return to advanced search