Jump to content

Recommended Posts

Guest LambChopMan
Posted

Systems files are stored in different locations in different operating system.

What function I can use to detect what OS the user is using so that I can use the "if " to copy files.

Thanks.

Posted

Systems files are stored in different locations in different operating system.

What function I can use to detect what OS the user is using so that I can use the "if " to copy files.

Thanks.

<{POST_SNAPBACK}>

i always a good idea to use the help You get a search tab which can or cannot work.

You get too an index tab and you can figure out other think.

In your case the index tab when paged show you @OSVERSION

Posted

Systems files are stored in different locations in different operating system.

What function I can use to detect what OS the user is using so that I can use the "if " to copy files.

Thanks.

<{POST_SNAPBACK}>

isn't it possible to check what the name of the windows map is? In XP it's "C:\WINDOWS" where as in win98 and win95 it's "C:\Win98" or 95. Don't know about the others but it might be a way.
Guest LambChopMan
Posted

Thanks jpm, it is a very good idea.

Berend Jan, your method can work only in some exceptional case (that the users obey everything from MS). The user can rename their windows foler to anything. Some early win95 users even have win3.1 in their systems. And don't forget there are some users upgraded from old OS to new OS. As a rule of thumb in programming -- assume little but your end user being dumb. :(

Posted

Thanks jpm, it is a very good idea.

Berend Jan, your method can work only in some exceptional case (that the users obey everything from MS).  The user can rename their windows foler to anything.  Some early win95 users even have win3.1 in their systems. And don't forget there are some users upgraded from old OS to new OS.  As a rule of thumb in programming -- assume little but your end user being dumb.  :(

<{POST_SNAPBACK}>

hehehe ok dude. just making a suggestion :(

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...