6 replies
by presleyd2007 Accepted solution
by retro77 Accepted solution
by presleyd2007 Accepted solution
script:
\\DSCA.Local\sysVol\DSCA.Local\Policies\{A6164733-56A4-4DD0-8938-FCC6EC619F0C}\user\scripts\Logon\class_files.vbs
Line: 18
Char: 2
Error:Files already exists
Code: 800A003A
Source: Microsoft VBscript runtime error,
All tablet pc's have the same software loaded, just the normal stuff, ie ms office, windows xp tablet edition, IE7 cac reader and Norton Av, everything is up to date as far as i can tell, just that this one tablet is getting the error, they were all clone from the same image.
by dan.cox Accepted solution
by presleyd2007 Accepted solution
this script update any changed files when a student logon/off during class, it also set-up network shares, ie printers and shared drives, and creates a class files folder on the desktop.
' Function to map a network drive
sub mapDrive( sDrive, sPath, sName )
On Error Resume Next
objNetwork.RemoveNetworkDrive sDrive
objNetwork.MapNetworkDrive sDrive, sPath
objShell.NameSpace(sDrive).Self.Name = sName
end sub
' Get username of student loging in
Set objNetwork = CreateObject("WScript.Network")
username = objNetwork.UserName
' Create folder
classfolder = "c:\Documents and Settings\" & username & "\Desktop\Class Files"
Set fso = CreateObject("Scripting.FileSystemObject")
if NOT fso.FolderExists(classfolder) then
fso.CreateFolder(classfolder)
end if
' Map network drive
mapDrive "z:", "\\dsca-dc\classfiles", "Class Files"
' Update class files folder
set wshell = CreateObject("WScript.Shell")
wshell.run "xcopy z:\instructors\* """ & classfolder & "\"" /D /E /C /R /Y
by dan.cox Accepted solution
Try this....
' Create folder
classfolder = "c:\Documents and Settings\" & username & "\Desktop\Class Files"
Set fso = CreateObject("Scripting.FileSystemObject")
if fso.FolderExists(classfolder) then
Else
fso.CreateFolder(classfolder)
end if
' Map network drive
Set objNetwork = CreateObject("Wscript.Network")
objNetwork.MapNetworkDrive "Z:", "\\dsca-dc\classfiles", "Class Files"
This discussion is closed to new replies.
Trending Software posts
Sort by Trending