1 Attachment(s)
"Run Command Line" not working anymore?
Hi Friedrich,
I use some "Run Command Line" commands in a script which worked ok
before (like: net user username password /add). But it seems they are
not working anymore.
Using Windows 10 Home.
So I did a very simple test to output a DIR command to a file, but the
file won't be created.
Please see the attached png.
The folder C:\TEMP exists but no file test.txt is created at all.
The script is run with Administrator elevation.
Using the latest SB 2019.6.
Friedrich, can you please check the "Run Command Line" command?
--
Best regards,
Jeffrey Kuijt
Re: "Run Command Line" not working anymore?
Jeffrey,
> Please see the attached png.
> The folder C:\TEMP exists but no file test.txt is created at all.
What is the value of %SYSDIR%, where did you get it and does it
account for the elevation?
--
Lee White
RPM Report Preview: http://www.cwaddons.com/products/rpm/
Creative Reporting: http://www.CreativeReporting.com
Hydrogen, the only CLEAN fuel and the future of clean air.
Re: "Run Command Line" not working anymore?
Hi Lee,
> What is the value of %SYSDIR%
C:\Windows\System32
> where did you get it
It's default in SB.
! --- Define standard installer variables ---
Set Variable %WINVER% to "{WINVER}"
Set Variable %CURLNG% to "{CURLNG}"
Set Variable %SRCDRV% to "{SRCDRV}"
Set Variable %CURDIR% to "{CURDIR}"
Set Variable %TMPDIR% to "{TMPDIR}"
Set Variable %WINDIR% to "{WINDIR}"
Set Variable %SYSDIR% to "{SYSDIR}"
etc.
Best regards,
Jeffrey Kuijt
Re: "Run Command Line" not working anymore?
Hi Jeffrey -
Could it be a 2004 thing?
https://clarionhub.com/t/clarion-run...-10-v2004/3387
Jeff Slarve
www.jssoftware.com
Bits and Bytes are Dy-No-Myte
Re: "Run Command Line" not working anymore?
Hi Jeff,
I ran the setup on a Windows 10 Home 1903 pc.
Best regards
Jeffrey
1 Attachment(s)
Re: "Run Command Line" not working anymore?
Jeffrey,
Run Command Line works, but the %SYSDIR% you are using is wrong.
The attached displays a messge box showing what %SYS32DIR%,
%SYSDIR%, and %WINDIR% map to. %SYSDIR% that you're using maps to
c:\windows\system, not system32.
Then my script runs %WINDIR%\system32\cmd.exe ... which works.
HTH
Jane
Re: "Run Command Line" not working anymore?
Thanks Jane,
Will try tomorrow!
Best regards
Jeffrey
Re: "Run Command Line" not working anymore?
Hi Jane,
I have just tested your script and it works, thank you!
I'm going back to the drawing board to review my script.
Best regards,
Jeffrey Kuijt