Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 10-17-2004, 11:13 AM   #1
Member (2 bit)
 
Join Date: Oct 2004
Posts: 3
*.bat in WIndows 2000

hie guys

one of my colleague was playing around with Win registry.then after that,he realized that he couldn't open any *.bat files in the system.What happened is,everytime we click shortcut for *.bat,a notepad comes out. I did try to execute the dos command in command prompt,some are working but some are not.Can anyone please help me with this?It only affects *.bat files..thanks
margerm is offline   Reply With Quote
Old 10-17-2004, 11:21 AM   #2
Member (10 bit)
 
mikezel's Avatar
 
Join Date: Dec 2003
Location: Toronto
Posts: 894
Send a message via MSN to mikezel
I'm sorry I can't really help you on this, but maybe i can point you in the right direction. It seems that whatever your friend did made the the batch files default to the "edit" command when clicked. Do a google search and see if you can find what registry setting would affect this, or right click the file's icon and see if there is a "run" command.

Mike
mikezel is offline   Reply With Quote
Old 10-17-2004, 11:35 AM   #3
Member (2 bit)
 
Join Date: Oct 2004
Posts: 3
thanks..actually,when i clicked the icon,it will start calling the *.bat in the specified folder.however,what happened is,a notepad with all the commands for that *.bat came out..it happens to all *.bat files..even if i manually run the *.bat files by double clicking on it,the same thing also happen(that bat file's commands came out in a notepad..)what should i do?thanks..
margerm is offline   Reply With Quote
Old 10-17-2004, 12:00 PM   #4
glc
Forum Administrator
Staff
Premium Member
 
glc's Avatar
 
Join Date: May 2000
Location: Joplin MO
Posts: 37,786
Open your Folder Options, then click on the File Types tab. If BAT is in the list of registered file types, delete it.
glc is offline   Reply With Quote
Old 10-17-2004, 12:14 PM   #5
Member (2 bit)
 
Join Date: Oct 2004
Posts: 3
i have done that,but it still doesnt work..here are one of my *.bat file..

setlocal
set ARIS_DB_ACCOUNT=%1
set ARIS_DB_HOST=localhost
set EXCEED_HOME=C:\Program Files\Hummingbird\Connectivity\7.00\Exceed
set SITE_IS_ASCENT_P=
set PATH=%ARIS_RUNTIME%\bin;%ARIS_RUNTIME%\perl\bin\MSWin32-x86;%EXCEED_HOME%;%PATH%
start "CI Monitor" /min perl "%ARIS_RUNTIME%\perl\giraffes_NT.pl" -application CI -configfile "%ARIS_RUNTIME%\config\giraffe_CI.cfg" -logging
endlocal

would be very grateful if anyone can help me on this..thanks
margerm is offline   Reply With Quote
Old 10-17-2004, 01:17 PM   #6
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
You will need quotes around the directory paths that are not 8.3 standard.
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:46 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2