Stupid We have an OP who does not want to use anything gleaned from the WWW, has been 'messing' with batch programming for two days and who can't understand the CD command info. That surely indicates just a little lack of experience. So what happens? The Op is told that using a batch script to hide files as the OP wishes to do is stupid then offered a script on the WWW.
Sure, the OP's coding is a tad on the raw side and the coding I suggested is a tad crude but hey, didn't we all start out with very rough edges? Whatever happened to nudging newbies along to achieve what they want and how they want to get there then suggesting possible improvements?
I have no doubt that the OP will get his script to run as he wishes then go on to improve it over time and eventually arrive at Encryption/Password Protection/etc...
BTW I don't know why the OP doesn't just burn the folders to dvd or cd or copy them to a flash drive and delete them from his hdd to keep them out of sight/hearing of his littles. But then that's not what he wants to do.
K.I.S.S.
Thank you for this ^
I am now using the locker code to hide said files, but...
I am still having fun making a batch to hide files like crazy. I am now working on adding the locker to the master hider i now have which will set off all the conceal bats i have in the folders.
And I totally agree with Dusty, I may be new to Batch codes but in other fields i am far from new, and when you are better then some one you should help them do what they thought of and then remark to them ways to improve it.
I am happy with my progress, the original code from day one for my hider was as such... (which i wrote my self)
This is Program one to hide the files (or as it was here, to convert them)
@ ECHO OFF
title Hiding Program
ECHO.
ECHO This program will change the format of any images in this folder.
ECHO Make sure you don't have any .mp3, .mp4, or .avi files in this folder.
ECHO.
ECHO.
PAUSE
CLS
ECHO.
ECHO Are you sure?
ECHO.
ECHO.
PAUSE
rename *.jpg *.mp3
rename *.gif *.mp4
rename *.png *.avi
REM Sir.Laggalot
And here is the program to return it back
@ ECHO OFF
title Fix Program
ECHO.
ECHO This program will reverse the effects of Hide.bat
ECHO.
ECHO.
PAUSE
CLS
ECHO.
ECHO Are you sure?
ECHO.
ECHO.
PAUSE
rename *.mp3 *.jpg
rename *.mp4 *.gif
rename *.avi *.png
REM Sir.Laggalot
Very crude and very rough, but as you can see i have improved a lot since then.
Of course I never have any material on my computer that I don't want anybody else to know about.
(Why does he want to hide mp3s? mp3s??? The mind boggles.)
But if I did I would rar them up into archives, with uninformative names such as X1234.rar and then remove the .rar extension so that a double click in Explorer would merely bring up the "unknown file type" dialog. This would not be a problem because I would know what they are, and also because rar.exe, the command line DOS executable that comes with WinRAR, does not care about extensions as long as you use wildcards. Let me clarify that. The command rar.exe e X1234 would fail with the message "Cannot open X1234.rar The system cannot find the file specified." even though X1234.rar does not exist. For a single, specified file, rar.exe adds the extension internally and then can't find the archive thus named because it does not exist. However, the command rar.exe e *.* will merrily extract from any rar archives it finds, whether or not they have an extension (and, if they do, whatever the extension is!)
If you read the code, it hides jpgs as mp3s not the other way around, (although it could easily be changed)
And if i were to hide it in a rar like that, (not easily accessible), I would rar the folder and then change it to a jpg file and attach a Picture to it so you could open it as the image and see said image.