SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Windows 7

any windows type - batch files...

(4 posts)
  • Started 5 years ago by avi5758
  • Latest reply from ispalten
  • Topic Viewed 529 times

avi5758
Posts: 30

hi ,
is there a way to hide the content of the batch file from being viewing ?
something like the "streams" method in notePad... (doesn't work in stream when i change the file extention from txt to bat
so it will be executed )

THANKS,
Avi

Posted 5 years ago
Top
 
ispalten
Posts: 6259

Old DOS trick, route the output to NUL, that is command > nul, should do the trick...

Here, look :

+++++++++++++++++++++
C:\>dir
Volume in drive C is OS
Volume Serial Number is 1C5C-DD5E

Directory of C:\

05/09/2009 03:23 PM <DIR> APCPowerChuteConfig
11/26/2009 08:58 PM <DIR> BigFishGamesCache
10/27/2009 11:47 AM <DIR> DELL
05/11/2009 03:49 PM <DIR> downloads
05/06/2009 05:30 PM <DIR> Drivers
05/15/2009 01:08 PM <DIR> Inet Downloads
07/28/2009 02:45 PM <DIR> inetpub
05/06/2009 02:24 PM <DIR> Intel
11/02/2009 06:47 PM <DIR> My Download Files
11/04/2009 12:56 PM <DIR> My Games
05/30/2009 08:09 PM <DIR> OpenCandy
07/13/2009 10:20 PM <DIR> PerfLogs
06/26/2009 04:39 PM 817 prefs.js
12/02/2009 02:20 PM <DIR> Program Files
12/02/2009 02:21 PM <DIR> Program Files (x86)
12/03/2009 08:17 AM <DIR> qtemp
05/20/2009 06:48 AM 1,612 sfcdetails.txt
05/24/2007 07:06 PM 614 signature.htm
05/24/2007 07:07 PM 604 signature2.htm
10/29/2009 02:41 PM <DIR> Users
09/29/2009 08:10 AM <DIR> Utilities
09/17/2009 04:24 PM <DIR> videodvdmaker
12/03/2009 12:19 PM <DIR> Windows
4 File(s) 3,647 bytes
19 Dir(s) 127,636,258,816 bytes free

C:\>dir >nul

C:\>
+++++++++++++++++++++++++++++++++

Irv S.

Posted 5 years ago
Top
 
avi5758
Posts: 30

that's nice , thanks , but not what i ment .
i want that if someone right-click on the file - edit he won't see the content like the "stream" trick in notepad...
http://www.howtogeek.com/howto.....mpartment/

Posted 5 years ago
Top
 
ispalten
Posts: 6259

Ahh, you want to EDIT the CONTEXT menu and remove an item, have a look HERE.
It doesn't inhibit viewing but removes the option if you remove EDIT.

Irv S.

Posted 5 years ago
Top
 



Topic Closed

This topic has been closed to new replies.