hidden directory

Why when I create a directory in a bat file does it not show but it is accessible. I am running windows 7 ultimate and the drives are ntfs formatted.

Thanks for any help.
PIPPIN6Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

helpfinderIT ConsultantCommented:
how exactly is the directory created?
Isn´t it created as hidden and Win set to does not show hidden files and folders? (this is default win setting)
0
PIPPIN6Author Commented:
Hi there,
Windows is set to show all hidden files and directories.

I create it in a bat file using the following code.

@echo off
FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET CDATE=%%B
FOR /F "TOKENS=1,2 eol=/ DELIMS=/ " %%A IN ('DATE/T') DO SET mm=%%B
FOR /F "TOKENS=1,2 DELIMS=/ eol=/" %%A IN ('echo %CDATE%') DO SET dd=%%B
FOR /F "TOKENS=2,3 DELIMS=/ " %%A IN ('echo %CDATE%') DO SET yyyy=%%B
SET date=%yyyy%-%mm%-%dd%
echo New folder name %date%
x:
cd\
MKDIR %date%
cd %date%
mkdir C
cd X:\%date%\C
mkdir dropbox
mkdir USERS
CD X:\%date%
MKDIR R
MKDIR Q
MKDIR S
MKDIR T
MKDIR U
MKDIR W
MKDIR Z

End

I have the issue only with the R directory. I tried to change it to R-Accounting and it still did not show up. I can access it in the dos window though but when I do a dir in the dos window it does not show.

I then removed the R completely and named it Accounting and it worked just fine. This is all right but why is this happening?

Thanks
0
McKnifeCommented:
Some bugs happen under the wildest circumstances. To touch these spheres is often very lengthy and in the end, you are not smarter than before. So if it is still reproducible, you can of course go and see if it makes a difference whether you use explorer to create it as opposed to your script. Or if it makes a difference if you use a small "r". Or...
But most probably it's just a plain bug.
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

McKnifeCommented:
Another very vague but not impossible theory: Your computer is running some cloaking software that hides certain folders from sight in explorer. Whoever laughs now, should think twice: those softwares exist and don't necessarily mean you are infected. Read http://blogs.technet.com/b/markrussinovich/archive/2005/10/31/sony-rootkits-and-digital-rights-management-gone-too-far.aspx - the article illustrates how Sony made people install a rootkit to hide certain things they should not see.
0
McKnifeCommented:
Please respond or finalize it, this question is growing old :)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PIPPIN6Author Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.