1.

Solve : Create hidden folder??

Answer»

I know how to create a normal folder. What I need to do is create a folder from a batch file that is already hidden so I do not need to go in and manually MAKE the folder hidden.

Help?ATTRIB /?
Code: [Select]attrib +h "DRIVE:\ folder\folder 2\file.extension"For what purpose?Xenfire, you know why clear wasn't working??? Because it was hidden (for some reason I got an error)...so I just did
attrib -h file
clearing command
attrib +h file


and that's how I got /clear to work...Thank you Evan. works fine.Quote from: Xenfire on May 09, 2009, 03:58:06 PM

Thank you Evan. works fine.
So...ban (which I will probably implement after putting your name in again...) will work like this:

Code: [Select]if /i "%msg%"=="/ban" (
echo Ban who?
set /p ban=Username^:
echo. > "Hiddenpath\%ban%"
attrib +h "Hiddenpath\%ban%"
echo %ban% has been banned. > %serv%
goto modview

That will ban someone...then this will check to see if they are banned whenever they send a message.

Code: [Select]if exist "Hiddenpath\%usr" (
:loopban
cls
echo You have been banned. The ban will be reviewed by the admin.
pause > nul
goto loopban
It will go between :msgloop and set /p msg=Message^: in chatter...and won't go after :modview, so the mods can't get banned...good idea!My checker just goes when they try to log in to any COMPONENT of the program.Quote from: Xenfire on May 09, 2009, 04:10:09 PM
My checker just goes when they try to log in to any component of the program.
What do you mean it just goes away? It just EXITS? Did you do that on purpose? (if the second question was yes)I didn't say "goes away" I just said "goes"
as in runs.

double check the contents of the post before you reply silly.Quote from: Xenfire on May 10, 2009, 08:09:27 AM
I didn't say "goes away" I just said "goes"
as in runs.

double check the contents of the post before you reply silly.
Well it obviously runs when they first run the program, although then you'd have to PUT it in more than once.


Discussion

No Comment Found