Topics Search

How to move hidden folders with move command in a batch file?

How to move hidden folders with move command in a batch file?
Views: 3
As the title suggests I'm trying to move a hidden folder with a batch file, but I get a Access Denied error

Here's code:

1) xcopy/s "C:\Documents and Settings\%username%" "E:\Documents and Settings\%username%"
2)
3) move /y "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\Outlook" "E:\Documents and Settings\%username%\Archieved"
Sponsored Links:

Similar posts...

 

Giving Automatic Permissions to Folders Created Using a Batch File

Giving Automatic Permissions to Folders Created Using a Batch File Icon

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.

 

How to move Robocopy's 'extra' files to a third folder, maintaining directory structure?

How to move Robocopy's 'extra' files to a third folder, maintaining directory structure? Icon

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.

 

Hidden Folders and hide folder uncheck is not available

Hidden Folders and hide folder uncheck is not available Icon

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.

 

Batch script for conditional copying and pasting

Batch script for conditional copying and pasting Icon
I came across the findstr batch command for searching for specific string in a file name. Can the same be used for reading folder names ? ie

I have folders like these:

2008-001
2008-002
2008-003

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
end=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
 

Consolidating folders??

Consolidating folders?? Icon
I am trying to consolidate a number of folders into a "Master" folder. I know I can do an "Select All" for files by selecting the first file and then scrolling down to the last file and pressing "Shift" and all of the intervening files will be selected.

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.
 

Unable to cancel auto arrange of folders in library, pictures and document

Unable to cancel auto arrange of folders in library, pictures and document Icon
cannot move folders or items in folders to other locations within 'pictures' or 'documents'. The black, vertical location bar does not appear when I click on a folder to move it around , and on releasing the mouse button the folder returns to it's origional position. Tried both left and right clicking on folders and in spaces in between but no option to deselect 'auto arrange ' appears, - only variuos options within an auto arrange system
 

Change icon & rename file using batch command

Change icon & rename file using batch command Icon

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.

 

Hidden files folders and documents

Hidden files folders and documents Icon

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,

 

How to write batch file to delete thousands of files

How to write batch file to delete thousands of files Icon

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:

 

Folders All Vanished

Folders All Vanished Icon
I've been working with someone who opened a link from a bogus Fedex email and contracted a nasty scareware bug. Between MSE and Malwarebytes we cleaned out the bug, but when she tried to access files her folders were gone.

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?