keilamym Posted February 23, 2005 Posted February 23, 2005 (edited) i'd like to write a script that prompts for a PC name, then according to the PC name open log files on that PC. example ;workstation name input $workstation = InputBox ( "Workstation Name", "Please type in the workstation name.","") ;open log files Run ( "\\$workstation\c$\logfilename", "" ) the input was simple but to get the log files to open. i've tried run and file open, but i dont know what else to try. can anyone help? i cant even get a directory to open. would i have to use notepad to open it? thanks Keilamym Edited February 23, 2005 by keilamym
keilamym Posted February 23, 2005 Author Posted February 23, 2005 (edited) Larry... thanks.. i tried the Run ( "\\" & $workstation & "\c$\logfilename", "" ) and couldn't get it to work. the notepad works fine however. is there a command to just open a folder on a remote workstation? if i could do that, then i could just use the notepad command to open the log files. thanks in advance. Edited February 23, 2005 by keilamym
keilamym Posted February 23, 2005 Author Posted February 23, 2005 what do you need to do with the logfile? print it? format it? extract info from it?Lar.<{POST_SNAPBACK}>i only need to view the folder and the contents on the log files. i dont need to print them or anything like that. (SMS 2003 log files)Thanks
keilamym Posted February 23, 2005 Author Posted February 23, 2005 (edited) i only need to view the folder and the contents on the log files. i dont need to print them or anything like that. (SMS 2003 log files)Thanks<{POST_SNAPBACK}>Sorry Larry.. i'm doing this the hard way. I can just use Run ( "explorer \\" & $workstation & "\c$\winnt\system32")along with notepad to open the filesTHANKS Edited February 23, 2005 by keilamym
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