The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Windows 7

any windows type - batch files...

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


Recommended: Clean Your Mac the Easy Way with CleanMyMac 3

If you want to clean up your Mac the easy way, CleanMyMac is a great tool to get the job done easily, and it will even keep your computer clean automatically.

Unlike the competition, it also includes great tools like a Clean Uninstaller, to get rid of applications and clean up the junk that they leave behind. All with the click of a button.

Download CleanMyMac 3 for Free Today

Posted yesterday 
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 )


Posted 6 years ago
Posts: 6259

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

Here, look :

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


Irv S.

Posted 6 years ago
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...

Posted 6 years ago
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 6 years ago

Topic Closed

This topic has been closed to new replies.