PDA

View Full Version : "Run Command Line" not working anymore?



NewsArchive
06-25-2020, 01:36 PM
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

NewsArchive
06-25-2020, 01:37 PM
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.

NewsArchive
06-25-2020, 01:37 PM
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

NewsArchive
06-25-2020, 01:38 PM
Hi Jeffrey -

Could it be a 2004 thing?

https://clarionhub.com/t/clarion-run-with-windows-10-v2004/3387

Jeff Slarve
www.jssoftware.com


Bits and Bytes are Dy-No-Myte

NewsArchive
06-25-2020, 01:38 PM
Hi Jeff,

I ran the setup on a Windows 10 Home 1903 pc.

Best regards
Jeffrey

NewsArchive
06-25-2020, 01:39 PM
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

NewsArchive
06-25-2020, 01:39 PM
Thanks Jane,

Will try tomorrow!

Best regards
Jeffrey

NewsArchive
06-25-2020, 01:40 PM
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