ik heb een scripje gemaakt, deze werkt wel onder windows XP/2k maar niet onder windows NT
het scriptje zet een aantal rechten en kijkt of je hostname & OS juist is
helaas loopt hij gewoon het script door en kijkt geeneens naar de goto commando's
het scriptje zet een aantal rechten en kijkt of je hostname & OS juist is
helaas loopt hij gewoon het script door en kijkt geeneens naar de goto commando's
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
| @echo off if hostname==install goto :Hostname_Error if not ver=="Windows NT Version 4.0" goto :Win_Error :copy_profile.000 if not exist "%windir%\profiles\staf.000" goto :copy_profile.001 xcopy /s/e/i/o/k/c "%windir%\profiles\staf" "%windir%\profiles\staf.000" :copy_profile.001 if not exist "%windir%\profiles\staf.001" goto :copy_profile.002 xcopy /s/e/i/o/k/c "%windir%\profiles\staf" "%windir%\profiles\staf.001" :copy_profile.002 if not exist "%windir%\profiles\staf.002" goto :Set_User_Rights xcopy /s/e/i/o/k/c "%windir%\profiles\staf" "%windir%\profiles\staf.002" goto :Set_User_Rights :Set_User_Rights #### #### Hier moeten de rechten komen #### #### Goto :Complete :Hostname_error Echo An error has been detected... Echo Your hostname is invalid... goto :end :Win_Error Echo An error has been detected... Echo Your Windows version is not Windows NT... goto :end :Complete Echo Done All... Echo Have a nice day... goto :end :end |
gratis af te halen SUN ultra1 compleet