andydis Posted November 25, 2011 Posted November 25, 2011 Hey edugeek, its tooo early in the morning for me to see where im going wrong on this, We have recently changed the students home drives to \\server4\studentname$ However my old VBS script to open students folders was pointing to \\server4\students$\studentname Can anybody help me change my vbs script? thanks! p.s. i have tried "& fname$ but it didnt like it Dim fname fname=InputBox("Enter students username FOR EXAMPLE 09smith:") MsgBox("You typed " & fname) Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "%windir%\explorer \\server4\students$\"& fname
Steve21 Posted November 25, 2011 Posted November 25, 2011 Hey edugeek, its tooo early in the morning for me to see where im going wrong on this, We have recently changed the students home drives to \\server4\studentname$ However my old VBS script to open students folders was pointing to \\server4\students$\studentname Can anybody help me change my vbs script? thanks! p.s. i have tried "& fname$ but it didnt like it Try: Dim fname fname=InputBox("Enter students username FOR EXAMPLE 09smith:") MsgBox("You typed " & fname) Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "%windir%\explorer \\server4\" & fname & "$" Not sure if that will do it, but worth a shot Steve
andydis Posted November 25, 2011 Author Posted November 25, 2011 lol thanks steve21 :-) having one of those braindead mornings :-(
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now