How To Change System Attribute For All Folders Using Command Prompt
Feb 25, 2012
I work at a school as Computer Applications Technology teacher.The students bring homework to school on their flashdrives, and though we have good antivirus software at school, the viruses on their home PC's will often do considerable damage to the data on their flashdrives.One of the most common problems we have is some virus that sets the "system" attribute on all folders, effectively hiding them, and then creating shortcuts named after those folders, inviting people to double-click them, thereby effectively installing the virus locally (though our antivirus blocks it). So the problem is that those folders (with their homework) can only be revealed by going into "Folder Options" and selecting "Show hidden files and folders" and removing the option to "Hide protected operating system files". This is a big breach in security.So I usually have to change those settings, run the Attrib command in the command line to change all the folders, and then re-enable the settings.All of this takes up valuable time.What I would like to know is, is there a way to give the attrib command once, thereby changing the attributes on all folders on a specific flashdrive? I played around with the /S /D and *.* settings, but couldn't accomplish anything.
In UNIX, for changing the directory path, there is "cd" command. .This works fine in windows 7 too.. But the problem comes when we are trying to change the path using environment variables. .
In UNIX, cd $JAVA_HOME changes the path to the value set for JAVA_HOME,
Similarly is there any command in Windows which does the trick from command prompt for changing path using Environment variables. .
I was stupid enough to manually delete my acronis files when I couldn't uninstall it the ordinary way.
Now windows 7 gives a short BSOD after logo and computer restarts. Startup repair doesn't fix the problem, neither from my windows 7 usb or from laptop, I have tried it several times.
I don't have any system restore created. I don't have any system image either to restore to either.
I really don't want to do a clean install again and wanted to try to do a repair upgrade, the problem is I can't boot into windows to begin with, and this seems to be needed to do a repair upgrade. When I try to do it from the USB it says I need to boot into windows first.
Is there a way to start the repair upgrade without having to boot into windows?
When I press F8 I don't get the options of safe mode, probably because I set the "time to display list of os to 0". Since I can't boot into windows 7 I can't change this above 0. Is there a a way to set this time above 0 from command prompt from my windows 7 installation usb?
Two days ago McAfee alerted me in message box that they had quaranteed a trojan horse. When I went to start my computer after work yesterday it went to start up repair which could not fix the problem automatically. In the system recovery options, #1 didn't work as states, #2syastem restore says no points (there were lots prior), #3no back up image avail #4windows memory diagnostic says all cool until it restarts then back to start up repair, and #5;is where I sit.
Trying to create a batch file for Windows 7 to run a command (elevated ) in command prompt?User: is an administrator or in administrator group ( but actual administrator account may be disabled )essentially need to be able to double click the *****.bat filehave it open up cmd in elevated ( run as administrator ) , run the command in the dos window and reboot the computer.
Ok So I got myself into a unique bind here. I was trying to install some custom system files (for a theme) and I did it wrong and now I cant open explorer.exe . I dont want to goto a backup because this is a easy fix. (in my view). So I need to know how to run command prompt with administrative privleges from command prompt.
I am trying to do this command: copy explorer.exe C:Windows
So if there is also another command I can just tack onto that that gives me admin rights to do it. I would be happy.
Does any one know how to get the win.ini missing fixed when opening bootcfg/msconfig not found. Also How to change "forcing changes in msconifg" to "not forcing changes" in msconfig from command prompt, as well as opening msconfig from command prompt w/ dos command(s) / paramteters.
I've had this problem for a while now. I'm using Windows 7.Most of the locations on my computer are set to read only. If I try to save something it usually doesn't work, unless I save it to my desktop, open the location I want to save it to in windows explorer, and move it there, at which point it will tell me that I need administrator permission to move the file there, and I have to click "allow." This affects a lot of my programs in various ways. Chrome stopped recording my internet history, (I assume because it can't save the history to whatever location it goes to), I can't use LifeFrame to record video or take pictures or anything like that, (again, I assume because the folder it saves to is in read only mode), and a lot of other stupid things.
If I right click and go to "Properties" and uncheck read only mode and then click ok, it doesn't work. If I go to properties again I can see that it hasn't changed.I looked on the internet somewhere and it said to use the command prompt to do something like "-r +s c:lahlahetc." I played around with that and it was also unhelpful. When I ran the command prompt normally, it told me that access was denied, and when I right-clicked and ran as administrator, it didn't give me an error message of any kind, but it still failed to change the folder from read only mode.
I am using the administrator account (which is the only account other than the Guest account I have set up).
I recently tried to attach some photos to an email I was sending, only to discover that when I went through the browse option there was apparently nothing in the folder (which there was when I checked the folder in question)Having dug around I discovered that every folder appears to have read only set in attributes.I tried to remove this but all to no avail. Having clicked on apply, then closed the file down, I have reopened it to find read only is still there.
I was just wondering id it was a good idea to have an extensive knowledge on the windows command prompt and how to use it. If so can anyone share some links to where I could see some tutorials?
I'm having an issue on my computer where command prompt will not open. I looked in the system32 folder and cmd.exe is missing, however there is cmd.exe.mui is there. I also tried to run hijackthis to get a log, however the program keeps spitting out a blank log when I click save log.
I am trying to run command prompt in windows 7 professional, but it is not appearing in front of me.
1. I tried to run it from Start --> Accessories --> Command Prompt
2. I tried to run by typing cmd on the start menu and then finding the .exe file
3. I tried to run using Run command by typing cmd in Run dialog box
4. I tried to run it from C:/Windows/system32 folder
5. I also tried to run it using right click and then selecting Run as Administrator
But whatever I tried to do I cannot see the command prompt window.Also, when I run the task manager, I can only see the cmd.exe running in the 'processes tab' and that too one new process for each time I have clicked on the cmd.exe.But it does not show cmd.exe in the 'applications tab' where it should be showing.
My computer (Toshiba Satellite running Windows 7 Home Premium) acquired some sort of terrible virus and shut itself down. When I try to turn it on, it goes into startup repair, and startup repair always fails. I have tried every single system restore point, and that fails too. When I try to start it in any of the safe modes, it simply goes back to startup repair and fails again.
He was able to access C: in command prompt. All my files are in their original locations and haven't been corrupted, but there are also four folders with names like xisdfl83lkd02 (seriously) which definitely weren't there before and presumably contain whatever has crippled my precious laptop. Whenever he tried to delete those folders, the command prompt looked like it had accepted the delete command, but then when he went back into C they were still there. So the bad files are immortal or something.
He said he was able to move things around, so I should get an external hard drive to back up my files, wipe the computer back to factory settings, then put my files back on it from the external hard drive. Well, now I have an external hard drive but don't have him around to do this.
I have absolutely no experience with command prompt, and I've read a bunch of tutorials on how to use it, but they aren't dumbed down enough for me to understand them. I need someone to walk me through it.
I can access the command prompt, but it goes into X:\sources\recovery\Tools> as a starting line. The thing at the top says Administrator: X:\windows\system32\cmd.exe. I didn't even know X was a real drive. I try to get it to C and it just goes back to X. When I type cd E:\ or cd F:\ trying to figure out where my external hard drive is, E says "The device is not ready" and F takes me right back to X:\sources\recovery\Tools>.
How do I get to the directory where I can find my files and move them to the hard drive?
Alright so for the past few days my girlfriend's computer has been having a very quick command-prompt-looking pop-up within 10 minutes of starting up. We weren't able to catch a glimpse of what it said until today, as the pop up is literally less than a second long.We recorded her screen and were able to pause at the time of the pop up, discovering what the pop up is.
This probably is not new to many, but I find it useful.There are times I want an elevated command prompt. I usually type in "cmd", right click on it and run as administrator. If you need an elevated command prompt now and then, simply create a shortcut to "cmd". Right click on the shortcut, left click on properties. Click the shortcut tab and select "advanced". Finally, you can select "run as administrator".Like I said, just something I didn't think about before, but it's handy to have.
so today i tried to open my command prompt because i tend to allocate more ram to minecraft whenever i play. I searched for it, and it was not even there. i searched cmd, went into accessories, and even did SHIFT-RC and it said "application not found". so is there any way i can get this back?
I'm using a SSH server to remotely access my notebook from work. It works well for SFTP and remote command line access using a dedicated, non-admin, user account.Problem is when I want to run something that requires admin permission under that connection. The server runs cmd.exe under the context of a non-admin user I've created for it, so I'm limited in what I can do. Question is, how can I "elevate" that remote command prompt to execute admin-only programs and commands? UAC of course will not help under that conditions.
When trying to open a CMD prompt it does not appear, even when run as Administrator. When checking in Windows Task Manager it appears in the list of Processes but in list of Applications.