Can't run command in PowerShell but OK in Cmd

Page 2 of 2 FirstFirst 12
  1.    01 Mar 2018 #11

    tcebob said: View Post
    how can I fix PS to recognize /@?
    Try --%

    That tells Powershell not to try to parse the rest of the line but just pass it as is.

    So
    Code:
    "C:\Program Files\AVAST Software\Avast\ashCmd.exe" --% /@=Quick
      My ComputerSystem Spec

  2. tcebob's Avatar
    Posts : 402
    Windows 10 pro 1803/17134.285
    Thread Starter
       01 Mar 2018 #12

    Good to know, lxo7. I'll try it. But right now I've avoided the problem by downloading System Scheduler https://www.splinterware.com which ran the command perfectly, using "c:\program files\avast software\avast\ashcmd.exe" as the application and /@=Quick as the parameter. It used cmd automatically.
      My ComputerSystem Spec

  3.    01 Mar 2018 #13

    tcebob said: View Post
    dalchina, your idea is brilliant and simple. The batch file works fine when run from the desktop. But, alas, does not run from the task scheduler. It says "Running" but nothing happens. Task scheduler shows in Task Manager while it's running.

    ... Edited out the /@=Quick part and still won't run. So maybe it has something to do with the ashCmd.exe program or with Avast.
    Strange. You could convince yourself the bat file is executed by picking something without a parameter that can be run from a command line- even just
    DIR C:
    Pause

    say.

    Just wondering if there's a difference in running as admin or a standard user for ashCmd?
    I have Avast free, but not that for whatever reason.
      My ComputerSystem Spec

  4. tcebob's Avatar
    Posts : 402
    Windows 10 pro 1803/17134.285
    Thread Starter
       07 Mar 2018 #14

    Don't know. AshCmd.exe has no user interface; if you run it it will open cmd.exe and display help. Similarly, running from within cmd shows help. You have to specify arguments. It probably doesn't come with Avast free.

    I've tried running some scheduled tasks installed by programs. Same results: TS says "Running" but nothing happens and I have to terminate them manually. So something is weird about TM.

    I have System Scheduler, an alternative to TM and it runs ashCmd just fine. But it is unable to wake the computer.
      My ComputerSystem Spec


 
Page 2 of 2 FirstFirst 12

Related Threads
How do you change from PowerShell to Command Prompt using file explorer ?
Hello, I'm looking for a way to check PC's IP Geolocation by using command prompt or powershell (no scripts). I hope there are some experts here who can help me out. I have found a very easy to do it on UNIX systems but my main machines will be...
:really:I have a few PCs connected via a bridge on an ethernet LAN. They communicate with each other, not "the internet". I'd like to rename "Unidentified network" to something more reasonable like "DoNotTreadOnMe" (allegorical.) 76590
I've encounter that all of my windows 10 apps cannot launch. I click them in the start menu but without response. I've executed powershell command Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register...
Show Command Prompt or PowerShell in Win+X Power User Tasks Menu in Windows 10 This tutorial will show you how to have either the Command Prompt or Windows PowerShell items show in your Win+X Power User Tasks menu in Windows 10 ...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:05.
Find Us