Results 1 to 8 of 8

Thread: "Run Command Line" not working anymore?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default "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
    Attached Images Attached Images  

  2. #2

    Default 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.

  3. #3

    Default 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

  4. #4

    Default 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

  5. #5

    Default Re: "Run Command Line" not working anymore?

    Hi Jeff,

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

    Best regards
    Jeffrey

  6. #6

    Default 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
    Attached Files Attached Files

  7. #7

    Default Re: "Run Command Line" not working anymore?

    Thanks Jane,

    Will try tomorrow!

    Best regards
    Jeffrey

  8. #8

    Default 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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •