Re: notepad.exe ran only at current dir = C:\ brings up 16-bit MS-DOS error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Pegasus (MVP)" wrote in message news:OOkEPPhMIHA.4196@xxxxxxxxxxxxxxxxxxxxxxx

"VanguardLH" wrote ...

I'm going to grab a copy of C:\notepad.exe from my backups to investigate just what was this program that got into the root of my C: drive.

. . . and so you should. Having rogue programs on the disk is
cause for concern.

Nope, not in my backups performed at 3AM today. notepad.exe got created today. I might know why. While the current path was at C:\, I was trying to run the following command:

tasklist /svc > mytasks.txt && notepad.exe mytasks.txt

This should work and does work when I tried it again - except that after retrying it multiple times then I found another rogue copy of notepad.exe under C:\. The redirection of tasklist into a file must somehow also be doing the same into notepad.exe. I've only been able to reproduce once the creation of notepad.exe when I retried this command so I'm not sure what caused it yet. Maybe redirection doesn't cooperate reliably with multiple commands (the "&" or "&&" delimiter) on the command line.

.



Relevant Pages

  • Re: SFTP
    ... The issue is with the redirection; sudo runs the command as root, ... the redirection runs as the user. ...
    (SSH)
  • Re: Apple recommending anti-virus software for Macs?
    ... > To be ultra-safe with the 'rm' command, ... Not a bad idea for root, It would drive me nuts in my user account. ... downloads directory and executing it. ... That I type an EOF is a trivial difference versus 'sudo' exiting ...
    (comp.sys.mac.system)
  • Re: [opensuse] su - -c $command user ???
    ... I'd like to calculate a command-string as root and pass it with su ... into the context of a unprivileged user to run the command not as ... Basically I need to know $d after the daemonuser created and filled ... Note the echo isn't really going to be a fully valuable ...
    (SuSE)
  • Re: Microsoft Office Ultimate 2007 WHY???
    ... Here is a possible "Transition " tool that has been provided by MS ... Milly Staples [MVP - Outlook] ... and look up the command for every bloody command out there. ... Windows 3.1 Microsoft missed the boat by not providing a ...
    (microsoft.public.office.misc)
  • Re: Microsoft Office Ultimate 2007 WHY???
    ... Milly Staples [MVP - Outlook] ... After furious head scratching, RIckP asked: ... and look up the command for every bloody command out there. ... Windows 3.1 Microsoft missed the boat by not providing a ...
    (microsoft.public.office.misc)