How to move hidden folders with move command in a batch file?
1) xcopy/s "C:\Documents and Settings\%username%" "E:\Documents and Settings\%username%"
3) move /y "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\Outlook" "E:\Documents and Settings\%username%\Archieved"
What's wrong... Please write below.
So I have a batch file set up to create folders and subfolders. These folders are created on a shared server that several employees access. The idea is to run the batch to create a set of folders for each new customer.
This keeps all of the files for the customer in one spot rather than spreading it out in a folder for each department then the customer.
The batch file creates my folders perfectly except no one else can access them. The permissions are denied for all users besides me. This is a problem because we have several employees trying to access the new customer folder I have created.
I want to be able to run the batch and create folders that automatically allow anyone to delete, rename, add to, move, etc. All of these permissions are allowed when I manually create the folders.
The idea is that anyone in the company can run the batch to create a customer folder and anyone else can edit it.
My goal is to create a command file to move all the path/filenames listed in a text file from their current location to an archive location while maintaining the directory structure. I created a Robocopy command (which will run first) that successfully creates a text file with all the 'extra' files listed.
Robocopy g:\move e:\move /l /x /njh /njs /s /ndl /xc /xo /xn /xl /ns /nc /xf ~$* > E:\Log\ExtraGtoE.log The next Robocopy command successfully mirrors from the first directory to the second directory.
Robocopy G:\Move E:\Move /MIR /S /E /COPY:DATSO /ZB /R:10 /W:5 /LOG:"E:\Log\MirrorGtoE.log" /V /NFL /NP /NDL /XJ /FFT /XO I need something in between those two commands to move the 'extra' files to a third directory.
The solutions I've found move the files to a specific folder and thus lose the directory structure.
I have a problem. My Music,Pictures, and Videos folders are all hidden within my libraries. I know how to do all the basics in showing a hidden file/folder (unchecking hide file, setting the folder to the appropriate folder option [in properties], and etc).
Well, I right-clicked the folder option (for all of these folders) in my libraries (with hidden folders shown), and there simply wasn't a "hide folder" option. I've also been playing around with these folders under my user options, but to no avail.
I have folders like these:
these are all folder . the number after the '-' indicates a certain number which the user would enter . now I am taking two inputs from the user.
start = some_number
if start = 1 and end =3 . then my batch file should copy all files in these folders
to a certain location . ie the files in folder from 2001-001 to 2008-003
I do not seem to be able to duplicate the same process for folders. I want to know if there is a way to do this, or do I have to move each folder,
otherwise, it becomes a pain to do this for a significant number of folders.
I want to rename a shortcut file on a desktop & change that file icon to my created icon. Creating one batch command to run both options. so just running one batch file both should take changes.
I has a virus which messed up the desktop, after I had removed it (malware) there were files and folders that were hidden(faint) but you can still access them, I.e. the libraries have only music in a dark format, the rest are faint, inside folders there are random documents, word, excel, pdf that are just hidden, I have checked for file views and show all hidden files and it makes no difference, I did a restore from a restore point and also tried a restore from backup whick took hours to complete. Still no better.
I am running windows 7 home premium,
Was infected by the matsnu1 virus recently which encrypes and locks all your data files. Got all my files back by running matsnu1decryp.exe You need an original clean file before the virus struck for it to work out how to decrypt all your other files does does save the day.
Down side is that you end up with two files. The the original and a locked version. You can just go through your hard drive and delete the locked files but I have a 1TB disk with thousands of files and folders.
Since all the locked files begin with "locked" I was wondering about some sort of batch file that would do this for all folders and sub folders.
I am sure I remember doing this stuff years ago with DOS but don't remember enough to try it. Grateful if anyone could let me know the DOS command for this or some other way of quickly deleting many files which have part of the name which is common to all files.
They all have different extensions so cannot use that option. My drive is H:
Vanished. The files were there, because when we searched for a file name there was no problem finding the file and its path. But trying to follow the path from the C didn't display anything.
Finally figured out that ALL her folders had been switched to HIDDEN. We managed to sort it all out once we figured that out.
Is there a single command that would hide all folders?