Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Protecting batch file?
Name: kimberly lurey Date: February 19, 2001 at 06:58:13 Pacific
Comment:
Is there a way to set a password to protect a DOS batch file from unauthorised persons as in MS-Word files etc?
I do know I could make use of 'choice' DOS command but that would be making no sense as the password would be revealed once one do a edit of the batch file yeah?
Name: DoOMsdAY Date: February 19, 2001 at 15:40:46 Pacific
Reply:
How about converting the Batch file to a COM or EXE? I have done this myself and it seems to work well - although there are people who say it's unsafe. Look on the net for "bat2com" or "bat2exe".
0
Response Number 2
Name: fred6008 Date: February 19, 2001 at 17:23:02 Pacific
Reply:
Nothing is perfect, but you could make the file hidden.
0
Response Number 3
Name: lurey Date: February 19, 2001 at 21:12:40 Pacific
Reply:
Thanks DoOMsdAY...I'll check out the web...
Aside to Fred6008 : How to make the .bat file hidden then ???
0
Response Number 4
Name: mr o Date: February 20, 2001 at 03:50:37 Pacific
Reply:
to hide files
attrib +h file.ext
you can see hidden files by typing
dir /ah
theres also system files
attrib +s file.ext
you can view them by, dir /as
0
Response Number 5
Name: World Library Date: February 21, 2001 at 09:04:18 Pacific
Reply:
Coms and exe's are good but they have a problem. The entry point is different so if your batch file calls, jumps, does, ect another program or secondary helper........it cannot return.
It is still a batch file so it can be opened and all the code displayed.......bummer.
Summary: Hi, Below is a simple bat using the user input. See (copy con). Have the input sent to a secondary bat. It will rename the file. Sorry this paper doll comes up a little scrambled on the screen......bu...
Summary: I need help with writing a batch file that returns an error code to another application (app1). My batch file is called by another application, when my batch file runs, it calls a VBS Script. This scr...