Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: System will not run .bat files

25 Jul 2015   #11
GokAy

Windows 7 Ultimate x64 SP1
 
 

Ok, why not just copy paste it from the winsxs folder to System32? Or even winsxs is deleted too?

I just copy pasted to desktop and it worked double clicking too (opened as C:\Users\Gokhan\Desktop).

Edit: In case permissions stop you from browsing there, try GiveMePower Download


My System SpecsSystem Spec
.
25 Jul 2015   #12
UsernameIssues

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by GokAy View Post
Ok, why not just copy paste it from the winsxs folder to System32? Or even winsxs is deleted too?

I just copy pasted to desktop and it worked double clicking too (opened as C:\Users\Gokhan\Desktop).

Edit: In case permissions stop you from browsing there, try GiveMePower Download
If you were able to copy the real cdm.exe file from the protected winsxs area and paste a copy into the System32 folder, then SFC scans would probably indicate an error. I am guessing that a cmd.exe file in the System32 folder is easier to infect. Hard Links seem to be a part of Windows security scheme. See the link inside the quote in my last post.

Our goal should be to return the OP's computer to a state as close to what Microsoft designed as possible. Not just make it functional. For example: turning off the UAC leaves a computer functional :-(
My System SpecsSystem Spec
25 Jul 2015   #13
GokAy

Windows 7 Ultimate x64 SP1
 
 

Yes, I understand what you are saying.

Use the cmd in winsxs to create the hardlink and try? I am about to go out for my daily walk, so won't be able to test in a VM until 2 more hours.

But perhaps sfc would work from the winsxs? Another thing to check in VM
My System SpecsSystem Spec
.

25 Jul 2015   #14
UsernameIssues

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by GokAy View Post
~~~
But perhaps sfc would work from the winsxs? Another thing to check in VM
It does work (in my VM). See below. It reports an issue that it cannot fix with the cmd.exe file, but a reboot and another SFC shows no integrity violations. I'm just not willing to suggest it without more opinions/testing. If you get the same results, then I guess we can recommend it to the OP.

From post #10:
[QUOTE=UsernameIssues;3115259]
Quote   Quote: Originally Posted by GokAy View Post
~~~
The long path that I show in the cmd screenshot is the actual 64bit cmd.exe file. It will run SFC on a 64bit system and that will fix the hard link that was deleted. I'm just not sure if SFC is the best way to handle this. Maybe others can chime in.
My System SpecsSystem Spec
25 Jul 2015   #15
GokAy

Windows 7 Ultimate x64 SP1
 
 

I am starting to test in a VM, will edit this post as I go.

Edit 1: Deleted cmd.exe inside System32 and cmd fails to open "Windows cannot find 'cmd'...."

Edit 2: Sorry it took a while, had trouble either with the mklink command or a permission. The same command worked finally! Double click from System32 works, cmd at run box works. Now, running sfc /scannow
My System SpecsSystem Spec
25 Jul 2015   #16
GokAy

Windows 7 Ultimate x64 SP1
 
 

Ok, sfc /scannow finished with no violations.

System will not run .bat files-cmd.exe-deleted-sfc-scannow-result.jpg


My System SpecsSystem Spec
25 Jul 2015   #17
UsernameIssues

W7 Pro SP1 64bit
 
 

Thanks for testing.

Maybe these steps will work for the OP:
1) run SFC from winsxs
2) reboot
3) run SFC from winsxs

Here is the info to run SFC:
click Start
paste this in the search area
Code:
c:\Windows\winsxs\amd64_microsoft-windows-commandprompt_31bf3856ad364e35_6.1.7601.17514_none_e932cc2c30fc13b0\cmd.exe
right click on cmd.exe
run as admin
type in sfc/scannow
(no space needed after sfc)
My System SpecsSystem Spec
25 Jul 2015   #18
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

Not knowing for sure everything that has been changed or deleted I would suggest doing a Repair install.

A tutorial by Brink:

Repair Install
My System SpecsSystem Spec
27 Jul 2015   #19
NoelDP

Microsoft Community Contributor Award Recipient

Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
 
 


As Jack suggests, this could well just be the tip of a large iceberg, and a repair is probably the best option in the longer term.
My System SpecsSystem Spec
Reply

 System will not run .bat files




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Cannot force system to use my modified system files...
I am using 64-bit version, and there is a problem. I want to change watermark text on desktop (right, down corner of screen). It is possible by changing user32.dll.mui in resource editor. I edited 32 and 64-bit file in WOW64 and System32 folder, but text on screen is same. Nothing changed... I...
Customization
How restore system files when System File Checker won't work
I have run System File Checker (sfc) and it found many files that were corrupt and could not be repaired. My PC appears to be running fine - but I am anal about repairing anything that is wrong on my PC. The only suggestion I've received so far was to perform a Repair Install. That's very risky....
Performance & Maintenance
When to delete old files and create System Image after System Repair
I have just finished a System Repair on my Windows 7 using repair ISO, and I'm not sure if I should do a system image backup before deleting old files with Disk Cleanup, or delete them after I've done a Repair Disc and System Image as well. I'm also afraid to delete anything at this stage. Would...
Backup and Restore
Can't Clear System Restore Files. System Check Virus the Cause?
About a month ago I managed to get the infamous System Check virus on my computer. I was shocked that it happened, I was at the time doing a google image search. Anyway I managed to remove the virus, unhide my files, and restore all my start menu shortcuts. During the removal process, I...
General Discussion
Files are listed by Carbonite as system files after adding tag
I'm running Windows 7 Professional 64-bit and having the same problem. You can easily resolve the "Hidden File" problem by right clicking on the file, select Properties, and remove the check box next to "Hidden". If you tagged all the photos in a folder, simply select all (ctrl-A) and do the same....
Software
Why Backup user and system files fails to create system images to optical disc?
1. Open center 2. Set backup settings and Select a optical disc as the location to save backup 3. An informaion pops up, says "System images cannot be saved on this device" Click for help, and can find "you can't save a system images on a CD or DVD" So, my question is why we can't do it,...
Backup and Restore


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:29.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App