Jump to content
Sign in to follow this  
keilamym

using UNC names?

Recommended Posts

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 by keilamym

Share this post


Link to post
Share on other sites

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 by keilamym

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 files

THANKS

Edited by keilamym

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...