Forums

 
HomeHomeRoyal TS V 1.xRoyal TS V 1.xToolboxToolboxA task to browse a file shareA task to browse a file share
Previous
 
Next
New Post
3/30/2009 4:57 PM
 

How can I create a task that will essentially function just like a "Start-Run" entry would?

Ideally, I could have a task like: \\$ConnectionName$\c$ for browsing an administrative share.  I've tried using that syntax as the argument for "explorer.exe" but that doesn't seem to work.

Any ideas ?

 
New Post
3/30/2009 5:08 PM
Accepted Answer 

Hi!

Here's what I did:

Task Name: Explore C:
Command: explorer.exe
Arguments: \\$Host$\c$
Working Directory: [left empty]

This is working for me. When you use $ConnectionName$ you are actually refering to the "DisplayName" of the connection. $Host$ refers to the host.

Hope this helps

cheers

Stefan


Stay in touch with code4ward.net:

Subscribe to our Blog RSS FeedFollow us on TwitterLike us on FacebookOur Google+ page
 
New Post
3/30/2009 5:36 PM
 

Thanks!

 
New Post
4/24/2009 4:42 PM
 
I don't seem to be able to get this to work. I get a message that \\xxx.xxx.xxx.xxx\c$ does not exist or is not a directory. Yet if I use the same syntax in 'run' or from a cmd prompt, I get a dialogue box asking for un & pw. Thanks, Marc
 
New Post
4/26/2009 11:18 AM
 

This task will also work when you have the proper rights to access this share. The C$, D$, etc. admin shares requires admin privs to access them. There are a couple of options you have to make this work:

1. Prior to executing this task, map a network drive from that machine with a user account which is at least local administrator on the remote machine.
2. Use the task to start a batch file which establishes the connection (you could even pass username, domain and password to that batch file from your connection settings)
3. Use PSEXEC (as demonstrated in other posts in the toolbox forum) to start a process with a user that has at least local admin rights on the remote machine.

cheers

Stefan


Stay in touch with code4ward.net:

Subscribe to our Blog RSS FeedFollow us on TwitterLike us on FacebookOur Google+ page
 
Previous
 
Next
HomeHomeRoyal TS V 1.xRoyal TS V 1.xToolboxToolboxA task to browse a file shareA task to browse a file share


spacer
dummy