NAS shell commands

Hi all,

Hope som1 can help, I´m getting mad.


IF GUIALLOWED THEN
SHELL(T50161."PH Files Path"+'RequestToken.bat')
ELSE BEGIN
//SHELL(CONSTRequestToken);
CREATE(WshShell);
WshShell.Run(T50161."PH Files Path"+'RequestToken.bat');
CLEAR(WshShell);
END;



I know that for shell you have to use text constant so, I did that (guiallowed). Basically the constant and the path before it´s the same.

I could not make it work.

I tried with WshShell.run ('Windows Script Host Object Model'.WshShell) but again seems not doing anything.

Any ideas?

thanks!

Answers

  • JuhlJuhl Member Posts: 724
    No it doesn’t.
    IF guiallowed prevents that.

    But again shell on NAS ??? Don’t know if that’s the best way to go?
    Follow me on my blog juhl.blog
  • txerifftxeriff Member Posts: 500
    Juhl wrote: »
    No it doesn’t.
    IF guiallowed prevents that.

    But again shell on NAS ??? Don’t know if that’s the best way to go?

    As guiallowed is false, then it should go to WshShell.Run. I even removed the guialloswd and go directly to WshShell.Run.

    Yes, shell on nas because I have to run external program.

  • JuhlJuhl Member Posts: 724
    What version are u on?
    Follow me on my blog juhl.blog
  • txerifftxeriff Member Posts: 500
    edited 2019-05-24
    > @Juhl said:
    > What version are u on?

    2009 forms.
  • JuhlJuhl Member Posts: 724
    I know COM objects dont work in NAS on 2013 and forward. But dont know about classic
    Follow me on my blog juhl.blog
  • txerifftxeriff Member Posts: 500
    I knew that already. This version does not run dotnet that's why. Well, only in rtc client i guess.
  • JuhlJuhl Member Posts: 724
    Check Event Log for clues
    Follow me on my blog juhl.blog
  • txerifftxeriff Member Posts: 500
    > @Juhl said:
    > Check Event Log for clues

    I forgot to do it. Anyway im thiking to try avoid shell by doing something else.
Sign In or Register to comment.