BAT and CMD files not working
Started by P & A Wood, Apr 20 2009 11:02 AM
11 replies to this topic
#1 OFFLINE
Posted 20 April 2009 - 11:02 AM
Hi Everyone,
Since running CCleaner on a PC last week none of the .bat or .cmd files work, and programs like Sage will not run.
If you run a .bat shortcut from the desktop all the icons and the mouse pointer and toolbars disappear briefly but nothing else happens.
If you run Sage Accounts you get the Sage logo screen but again nothing else.
Can anyone help please??
Regards
Tim Mason
Since running CCleaner on a PC last week none of the .bat or .cmd files work, and programs like Sage will not run.
If you run a .bat shortcut from the desktop all the icons and the mouse pointer and toolbars disappear briefly but nothing else happens.
If you run Sage Accounts you get the Sage logo screen but again nothing else.
Can anyone help please??
Regards
Tim Mason
#2 OFFLINE
Posted 20 April 2009 - 11:18 AM
Did you run the registry clean option? Did you 'fix' all issues? Did you take a registry backup when requested?
If yes to all three then I suggest that you restore the registry backup. Right click on the backup file (something like cc_20090417_095608.reg in My Documents) and select Merge. If no to any, or having problems with the reg mrege, post back here.
If yes to all three then I suggest that you restore the registry backup. Right click on the backup file (something like cc_20090417_095608.reg in My Documents) and select Merge. If no to any, or having problems with the reg mrege, post back here.
#3 OFFLINE
Posted 20 April 2009 - 12:48 PM
Augeas, on Apr 20 2009, 11:18 AM, said:
Did you run the registry clean option? Did you 'fix' all issues? Did you take a registry backup when requested?
If yes to all three then I suggest that you restore the registry backup. Right click on the backup file (something like cc_20090417_095608.reg in My Documents) and select Merge. If no to any, or having problems with the reg mrege, post back here.
If yes to all three then I suggest that you restore the registry backup. Right click on the backup file (something like cc_20090417_095608.reg in My Documents) and select Merge. If no to any, or having problems with the reg mrege, post back here.
Thanks for the reply. The answer is yes to all three questions but I have just run the merge and nothing has changed.
Any other ideas?
#4 OFFLINE
Posted 20 April 2009 - 02:28 PM
Unfortunately not too many. A sys restore from a point before you ran CC might help, and can be backed out if you don't like it. I'm not too confident that sys restore will solve CC issues as it only restores critical system files, not data, but it's worth a try. That's on XP, Vista sys restore does do some data restore, but I'm not a Vista user.
#5 OFFLINE
Posted 21 April 2009 - 03:31 AM
Maybe the bat file associations are mixed up, backup the registry and try the batch fix here:
http://www.dougknox..../file_assoc.htm
http://www.dougknox..../file_assoc.htm
fireryone

There are 10 types of people in this world.
Those who understand binary, and those who don't.

There are 10 types of people in this world.
Those who understand binary, and those who don't.
#6 OFFLINE
Posted 21 April 2009 - 11:02 AM
Thanks for both of the above but unfortunately neither have worked.
I have tried replacing the shortcuts, and running the .bat files directly on the network and they will not work from that machine, but will on all others.
Any more suggestions.....?
I have tried replacing the shortcuts, and running the .bat files directly on the network and they will not work from that machine, but will on all others.
Any more suggestions.....?
#7 OFFLINE
Posted 21 April 2009 - 11:36 AM
I dunno, some environment variable missing? Do the bat files contain full path filenames? Do they have a @Echo off line which you can edit out and then run so that there may be an error message produced? Can you try this on a harmless bat file? I'm no great expert in batting.
#8 OFFLINE
Posted 22 April 2009 - 01:00 PM
Well I tried editing out the '@echo off' line and it still did the same thing - the icons, open windows and taskbar disappear (but not the wallpaper) and then after a few seconds they come back, except the window I had open to access the .bat file.
The .bat files in question are on the network and work fine on other workstations, and they do contain the full path filenames.
The .bat files in question are on the network and work fine on other workstations, and they do contain the full path filenames.
#9 OFFLINE
Posted 22 April 2009 - 02:28 PM
You could look at the logs in the Event Viewer, but I've never found these to be very helpful. Apart from this I'm stumped. Anyone else have any ideas?
#10 OFFLINE
Posted 23 April 2009 - 12:35 AM
P & A Wood, on Apr 22 2009, 11:00 PM, said:
Well I tried editing out the '@echo off' line and it still did the same thing - the icons, open windows and taskbar disappear (but not the wallpaper) and then after a few seconds they come back, except the window I had open to access the .bat file.
The .bat files in question are on the network and work fine on other workstations, and they do contain the full path filenames.
The .bat files in question are on the network and work fine on other workstations, and they do contain the full path filenames.
what happens if you try to directly run the command line?
Start / All Programs / Acessories / Command Prompt
also try Start / run / type CMD / press enter
do either work?
If it opens:
(for ease of typing) put a bat file in you C:/ drive
then type C:\name.bat Where name is the name of your bat file.
does it run now?
fireryone

There are 10 types of people in this world.
Those who understand binary, and those who don't.

There are 10 types of people in this world.
Those who understand binary, and those who don't.
#11 OFFLINE
Posted 23 April 2009 - 09:34 AM
Hi Fireryone,
Neither route would start the command prompt, so maybe this is the problem rather than the .bat file?
Any suggestions on a cure?
Neither route would start the command prompt, so maybe this is the problem rather than the .bat file?
Any suggestions on a cure?











