Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text Previewer (windows only)
#15
The only 100% workaround that I've found is just to write the shell command into a batch file and then call it from there.  Crazy, but it is what it is.

I found another SHELL that was almost impossible to deciper the other day.  It was something like:

 foo print 123 > text.txt

From the command line, it worked with no isses.

From SHELL, it ended up having to be something like:

SHELL chr$(34) + "powershell 'foo print 123' > text.txt" + CHR$(34)

The entire powershell command had to be listed inside the single quotes, so it'd process as a single command, and then *everything* had to be encased in quotes so that CMD wouldn't break it apart into multiple, fractional calls to crap.

Lord, the hoops to ump throug, for something so simple!!
Reply


Messages In This Thread
Text Previewer (windows only) - by SMcNeill - 03-17-2024, 06:46 PM
RE: Text Previewer (windows only) - by a740g - 03-17-2024, 06:56 PM
RE: Text Previewer (windows only) - by SMcNeill - 03-17-2024, 07:00 PM
RE: Text Previewer (windows only) - by a740g - 03-17-2024, 07:05 PM
RE: Text Previewer (windows only) - by bplus - 03-17-2024, 07:14 PM
RE: Text Previewer (windows only) - by SMcNeill - 03-17-2024, 07:16 PM
RE: Text Previewer (windows only) - by mdijkens - 03-25-2024, 12:52 PM
RE: Text Previewer (windows only) - by SMcNeill - 03-17-2024, 07:46 PM
RE: Text Previewer (windows only) - by SMcNeill - 03-17-2024, 11:15 PM
RE: Text Previewer (windows only) - by SMcNeill - 03-18-2024, 12:31 AM
RE: Text Previewer (windows only) - by SMcNeill - 03-18-2024, 12:38 AM
RE: Text Previewer (windows only) - by SMcNeill - 03-18-2024, 12:34 PM
RE: Text Previewer (windows only) - by Pete - 03-25-2024, 02:47 AM
RE: Text Previewer (windows only) - by SMcNeill - 03-25-2024, 02:34 PM



Users browsing this thread: 1 Guest(s)