Solved Folder locker bat file not working with Windows 98 .

April 16, 2012 at 17:22:07
Specs: Windows 98 SE
The lock folder code not working in batch file I mean locking doesn't work the "ren" face change folder lock do well, but with my Standard windows 98 SE the attributes {which becomes a hidden file} is not accordant to actively locking down; the bat file simply opens the folder . Too much for my stupid 98 ? My fear is the same for breakage due to improper support to the Control Panel Classid .

See More: Folder locker bat file not working with Windows 98 .

Report •


✔ Best Answer
April 22, 2012 at 14:33:14
See my reply already given at #3.

Post it on the "Programming forum" where you should get detailed help.
There might be some other way of going about it on W98.

Always pop back and let us know the outcome - thanks



#1
April 17, 2012 at 11:56:47
Sorry but your post is difficult to understand.

Firstly, do you mean this code I found on the net (written for XP)?:

======================================

cls
@ECHO OFF
title Folder Locker
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p “pass=>”
if NOT %pass%==type your password here goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

======================================

If not, give a link to the website that gives the code you are using. If it is XP code then it is unlikely to work because of the differences.

Always pop back and let us know the outcome - thanks


Report •

#2
April 22, 2012 at 12:28:43
This won't be accepted, the only one which does work is :
==========================================

@echo off
REM This batch file will unlock access to a folder on your desktop called lockedfolder
ren lockedfolder.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0} lockedfolder

to Lock and

@echo off
REM This batch file will unlock access to a folder on your desktop called lockedfolder
ren lockedfolder.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0} lockedfolder

I don't see why its no go with my win 98 desktop file . The other is harder to find and the batch file is not to complex . Oh, yeah ; - if its not too much trouble with 98 and say other OS' s what is the problem with batch code? /if any/ I never saw a response to or near the ' variants ' subject .


Report •

#3
April 22, 2012 at 13:12:58
I'm a tad mystified.

The two REM's in the code given in #2 (as you probably know) are just notes and are ignored. The echo lines simply control what is seen on the screen. So the working bit just boils down to this:

to Lock and

I'm no batch file geek but it surprises me that it does anything much.

I think your best bet is to repost this on the Programming forum. If you do so, then reword your question to make it as clear as possible and state what operating system it relates to. Give links to any code source that you are attempting to use.

Good luck.

Always pop back and let us know the outcome - thanks


Report •

Related Solutions

#4
April 22, 2012 at 14:13:34
This won't be accepted, the only one which does work is :
==========================================

@echo off
ren lockedfolder.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0} lockedfolder

to Lock and

@echo off
ren lockedfolder.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0} lockedfolder

Sorry, ,,
I don't see why its no go with my win 98 desktop file . The other is harder to find and the batch file is not to complex . Oh, yeah ; - if its not too much trouble with 98 and say other OS' s what is the problem with batch code? /if any/ I never saw a response to or near the ' variants ' subject .


Report •

#5
April 22, 2012 at 14:33:14
✔ Best Answer
See my reply already given at #3.

Post it on the "Programming forum" where you should get detailed help.
There might be some other way of going about it on W98.

Always pop back and let us know the outcome - thanks


Report •

#6
April 25, 2012 at 14:49:11
Posting on programming , hopefully something will come out of it .

The Win98 system is so crude and different especially w/ Bat files .

Thank-you Derek .


Report •

#7
April 25, 2012 at 14:55:01
There is one other "thing" I just hadn't thought of , and that is , as you mentioned -
the REM . That little piece of coding didn't even come out , as far as common topic . Even then it came from , - at least 2000 Windows OS . I'm pretty sure, in batch files that is .

Report •

#8
April 25, 2012 at 15:36:06
That's normal. REM's are simply reminders for the programmer and they don't show up when running the batch file. There are ways to get pieces of text to show using echo commands.

That's why I said that your working program boils down to simply:
to Lock and
I can't imagine that short string doing anything.


Report •


Ask Question