Computing.Net > Forums > Disk Operating System > Protecting batch file?

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?

Reply to Message Icon

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?

So...any ideas anyone?



Sponsored Link
Ads by Google

Response Number 1
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.

Hope they find a way to fix those two problems.

W.L.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

Help Needed LPT port as a com port in...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Protecting batch file?

Batch File: Commands/Prompts www.computing.net/answers/dos/batch-file-commandsprompts/2886.html

Help!! Batch File www.computing.net/answers/dos/help-batch-file/13525.html

Batch files - - Mapping network drive www.computing.net/answers/dos/batch-files-mapping-network-drive/3809.html