/build/static/layout/Breadcrumb_cap_w.png

Windows 7 and XP

I have scripts that were written for XP that used c:\documents and settings, and c:\winnt

What is the best way to modify ten so that they take in concideration the fact that the to OS's use different paths?

Thanks

0 Comments   [ + ] Show comments

Answers (4)

Posted by: airwolf 14 years ago
Red Belt
0
It depends on the language your scripts are written in. Just use environment variables and you won't have to worry about it.
Posted by: anonymous_9363 14 years ago
Red Belt
0
use environment variables...which is what you ought to have done in the first place. Hard-coding paths, especially those which the OS resolves for you, is never a good idea.
Posted by: dwilson 14 years ago
Senior Yellow Belt
0
understood but I am with a company now that has done just that and i am trying to clean up the mess.
Posted by: mekaywe 14 years ago
Brown Belt
0
Check the OS version and condition your CA to execute accordingly
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ