Jump to content











Photo
- - - - -

Question about a Runscanner issue


  • Please log in to reply
4 replies to this topic

#1 Vulcan

Vulcan
  • Members
  • 7 posts
  •  
    United States

Posted 03 June 2008 - 03:44 AM

This is the contents of a .cmd file that I use to run ShellExView with my LiveXP cd:

@echo off

echo Starting ShellExView...

cmd /k start "%ProgramFiles%\RunScanner\RunScanner.exe" /t 0 /ac /sd /m+ /y "%ProgramFiles%\ShellExView\shexview.exe"

This results in an error message saying:
Invalid switch - "/t".

Using
"%ProgramFiles%\RunScanner\RunScanner.exe" /t 0 /ac /sd /m+ /y "%ProgramFiles%\ShellExView\shexview.exe"

in a shortcut file works fine. Why can't this work in a cmd file?

#2 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 03 June 2008 - 03:58 AM

Why do you need "cmd /k start" in your file? What happens if you get rid of it?

Regards,
Galapo.

#3 Vulcan

Vulcan
  • Members
  • 7 posts
  •  
    United States

Posted 03 June 2008 - 06:02 AM

Oh, the cmd /k just keeps the command window open for me so errors can be displayed. I don't plan on having it for normal usage.
I tried it without cmd /k and it didn't change anything.

#4 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 03 June 2008 - 06:12 AM

I tried it without cmd /k and it didn't change anything.


I just tested the following, which worked:
"%ProgramFiles%\RunScanner\RunScanner.exe" /t 0 /ac /sd /m+ /y regedit.exe

Like I said, remove the "cmd /k start" and see if that works.

Regards,
Galapo.

#5 Vulcan

Vulcan
  • Members
  • 7 posts
  •  
    United States

Posted 04 June 2008 - 02:02 AM

Thank you that worked!

However, now that I've tested stuff out I realize that there are some CLI programs (like Sysinternals PendMoves) that run and then close the window before I can get a chance to see anything. Since Runscanner doesn't like "cmd /k" - is there an alternative solution?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users