Computing.Net > Forums > Programming > How do you call an .inf from batch

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How do you call an .inf from batch

Reply to Message Icon

Name: Ian
Date: November 11, 2003 at 10:42:08 Pacific
OS: xp
CPU/Ram: any
Comment:

Ok, I have finally got an .inf file to delete a bunch of registry keys i needed to remove. However, I have to do this to 100+ PC's. So i want to run this from a script over the LAN. All i need to know how to do is how to call the .inf and make it run using batch. I have read other peoples posts and came up with this for the batch file:
c:\windows\rundll.exe setupx.dll,InstallHinfSection DefaultInstall 132 c:\windows\desktop\test.inf
However, this doesn't do anything. I want it to execute the commands in the .inf but it doesnt? I have named the inf file test and placed it on the desktop, so the path is correct. Can someone PLEASE show me what I am doing wrong!!



Sponsored Link
Ads by Google

Response Number 1
Name: Tope
Date: November 11, 2003 at 10:49:09 Pacific
Reply:

I don't know if this will help you any. when you want to remove windows messenger, you go to start>run>and then type this in:
RunDLL32 advpack.dll,LaunchINFSection %windir%\INF\msmsgs.inf,BLC.Remove

it obviously calls an .inf file to remove it, i'm not sure how though. maybe someone else understands it better. sorry.


Tope


0

Response Number 2
Name: Ian
Date: November 11, 2003 at 10:52:02 Pacific
Reply:

OK Also here is what the dos promt show when i run the batch file. (batch file is supposed to run and execute the commands in the inf file)
************************************


C:\Documents and Settings\Administrator.THOMSON\Desktop>c:\windows\rundll.exe
'c:\windows\rundll.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Administrator.THOMSON\Desktop>setupx.dl
'setupx.dl' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Administrator.THOMSON\Desktop>InstallHinfSection
'InstallHinfSection' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Administrator.THOMSON\Desktop>DefaultInstall 132
'DefaultInstall' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Administrator.THOMSON\Desktop>c:\windows\desktop\nrtf.
inf
The system cannot find the path specified.

C:\Documents and Settings\Administrator.THOMSON\Desktop>pause
Press any key to continue . . .

*****************************************

Any ideas of what is wrong?


0

Response Number 3
Name: Tope
Date: November 11, 2003 at 11:11:47 Pacific
Reply:

number one, in XP the desktop isn't in the windows directory. it's in c:\documents and settings\*UserNAME*\desktop . number two, it's rundll32.exe. you also have setupx.dll missing an 'l'. and rundll32.exe is in c:\windows\system32 . take a look at what i posted before, that may help you.


0

Response Number 4
Name: Ian
Date: November 11, 2003 at 11:27:34 Pacific
Reply:

Ok, I tried what you said, but its not working. I dont understand anything, so is it possible that someone who knows what there doing, could show me the batch file code that will do this:
Execute the commands stored in an inf file located on the desktop. I have tried everything I can, I just don't seem to understand enough to get it to work. Im on XP in case that matters. Im not looking for a Mona Lisa, I just want a simple batch that executes the commands in a inf file located on the desktop. (the inf file is named test.inf for easier understanding of code) PLEASE!!
btw thnx for the help Tope but I cant follow your first post at all, im not very good at this stuff.


0

Response Number 5
Name: Ian
Date: November 11, 2003 at 12:34:51 Pacific
Reply:

Ok THANKS so much for your help Tope, I finally figured it out. You were VERY helpful! Problem solved, thanks a million!!!!!!


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

her IR! Logging into Website with...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: How do you call an .inf from batch

Unattended execution of an exe from batch www.computing.net/answers/programming/unattended-execution-of-an-exe-from-batch/20039.html

HTML-- how do you make frames invisible? www.computing.net/answers/programming/html-how-do-you-make-frames-invisible/458.html

how do use call function in java like C www.computing.net/answers/programming/how-do-use-call-function-in-java-like-c/951.html