Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reaching a shared folder by its UNC path

Status
Not open for further replies.

boolean

Programmer
Mar 5, 2002
35
US
Hey peers,

All I want to do is "Reach a shared folder by its UNC path".
Essentially I run the command line utility of winzip to make a zip archive of the files present in a shared folder in a machine on my network.

I can always achieve the same by mapping the shared folder and running the winzip utility against the mapped path, but I dont want any such dependency on a drive letter.

What am trying to say is that if I was to reach the same shared folder by its mapped drive letter I would do it in the following way:
(considering that '\\[MachineName]\SharedFolder' is mapped to my 'L:' drive)

L:CD SubFolder
[Run Winzips command utility from the 'SubFolder']

but how can I achieve the same by specifying the UNC path of the 'SharedFolder'? something like reaching
'\\[Machine Name]\SharedFolder\SubFolder' and then
[Run Winzips command utility from the 'SubFolder']
remember, we are looking at the command line...

Thanks for all the help thats on its way!
Sham aka boolean... be practical/be straight... true/false?!
 
Is this what you are looking for?

-----------------------------------
shell "c:\progra~1\winzip\winzip32.exe -min -a c:\tmp\test.zip \\servername\folder\subfolder\*.txt",vbHide
-----------------------------------
Which will zip all text files from the network UNC path to your local HD.
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top