Mombu the Microsoft Forum

  Mombu the Microsoft Forum > Microsoft > Windows 2003 Server (TECHNET) > how to exclude files and folders


User Name
Password
REGISTER NOW! Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
1 22nd April 21:55
ramana sve©šť«/v+şë˘{&‰ę貇ír‰
External User
 
Posts: 1
Default how to exclude files and folders



hi, this is ramana, i got some problem in WSH, i want copy all files and
folders from remote systems to local system in that i exclude some files and
folders. how to do this using WSH pls help me urgent.

thank you
Ramana
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


2 22nd April 21:55
ramana sve©šť«/v+şë˘{&‰ę貇ír‰
External User
 
Posts: 1
Default how to exclude files and folders



hi, this is ramana, i got some problem in WSH, i want copy all files and
folders from remote systems to local system in that i exclude some files and
folders. how to do this using WSH pls help me urgent.

thank you
Ramana
  Reply With Quote
3 26th April 04:13
asdf
External User
 
Posts: 1
Default how to exclude files and folders


Does notwork on win9x systems

Will not work on later systems.

----------------------------------------------------

Some files will always be locked against reading


****************

prefetch
softwaredistribution
gobackio
hiberfil.sys
pagefile.sys
ntprotect
system volume inforamtion
  Reply With Quote
4 26th April 04:15
ramanae©šť§b±ë¬˛*˛hś®‹(~×(
External User
 
Posts: 1
Default how to exclude files and folders


using XP system.

************************************************** **********
Dim objNetwork,FSO,net,Wshnetwork
Dim strDriveLetter, strRemotePath, strUser, strPassword, strProfile
strDriveLetter = "Z:"
Set objNetwork = WScript.CreateObject("WScript.Network")


objnetwork.MapNetworkDrive "Z:","\\IPADRESS\c$","True","username","passwo rd"

set fso = wscript.CreateObject("Scripting.FileSystemObject")
set folder = fso.GetFolder ("Z:\xyz")

'exclude txt files
for each file in folder.Files
if fso.GetExtensionName (file.Path) = ".txt" then
WScript.Echo file.Path & " excluded"
end if
FSO.Copyfile "Z:\xyz\*.*", "c:\abc\"

'exclude test.txt file
if file.Name = "*.txt" then
WScript.Echo file.Path & " excluded"
end if
next
objnetwork.RemoveNetworkDrive "Z:"
WScript.Echo " Drive Closed:: check: "
************************************************** ********
"asdf" wrote:
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


5 16th August 23:26
asdf
External User
 
Posts: 1
Default how to exclude files and folders


Casper
  Reply With Quote
6 16th August 23:26
asdf
External User
 
Posts: 1
Default how to exclude files and folders


wsh file system object will not honor higher level locked files for reading.
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes







Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
Also visit Ogoun the Usenet Archive
666