Computing.Net > Forums > Windows XP > Need help creating a batch file

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.

Need help creating a batch file

Reply to Message Icon

Name: a_kamal
Date: November 5, 2008 at 19:32:58 Pacific
OS: Win XP
CPU/Ram: 1 GB
Product: HP
Comment:

Hello everyone

This is my first post, I wish i will have some luck with this

we have installed Adobe Acrobat Pro 9 on 3 Pcs in the office today

we are getting this Error when we try to launch the software

"Microsoft Visual C++ Debug Library
Runtime Error!
Program: C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.exe
The application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. "

after troubleshooting for hours we found a solution which involves editing 2 registry keys .. it must be done before lunching the application or it will not work

so want I want to do, is to create a batch file that can be added to the login script so it can be done automatically without user awareness

the registry keys that need to be chnaged

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

a string value "AppData" chnage the current value to C:\Adobe

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

a string value "AppData" chnage the current value to C:\Adobe


I created a batch file but I did not have luck runing it (every time i try to run it I get this error "Invalid command-line parameters" )

my batch file

REG DELETE HKCU\Software\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders /v AppData

REG ADD HKCU\Software\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders /v AppData /t REG_SZ /d C:\Adobe

REG DELETE HKCU\Software\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders /v AppData

REG ADD HKCU\Software\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders /v AppData /t REG_SZ /d C:\Adobe
pause

Please advice

Thank you



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: November 6, 2008 at 03:08:06 Pacific
Reply:

I don't understand why you want to run the script at every login. After the first run the registry is modified forever.

Anyway you have to embrace the key definitions by double quores (") as they contain spaces, so

REG DELETE "HKCU\Software\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v AppData

REG ADD "HKCU\Software\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v AppData /t REG_SZ /d C:\Adobe

REG DELETE "HKCU\Software\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v AppData

REG ADD "HKCU\Software\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v AppData /t REG_SZ /d C:\Adobe


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Need help creating a batch file

need help with a batch file www.computing.net/answers/windows-xp/need-help-with-a-batch-file/142147.html

Need some help creating a batch file www.computing.net/answers/windows-xp/need-some-help-creating-a-batch-file/178026.html

Help in Creating a btch file www.computing.net/answers/windows-xp/help-in-creating-a-btch-file/178855.html