I need to create a script that will delete 2 files on a local pc, but also delete 4 files on another (networked\pathed) pc. I would like to use WISE, if possible. At this point, I would be interested in any script that would work. I have even tried a batch file. Here is the batch script just so you guys get an idea what I am trying to do. I am using the correct pathing, but can not get the network files to delete. I am pushing this job to the Kcm-altiris1 computer. I am using Altiris as my deployment tool obviously.

del /F /s "\\kcm-altiris1\Images\Base Images\basexp.002"

del /F /s "\\kcm-altiris1\Images\Base Images\basexp.img"

del /F /s "\\kcm-altiris2\Images\Base Images\basexp.002"

del /F /s "\\kcm-altiris2\Images\Base Images\basexp.img"

del /F /s "\\kcm-altiris2\Images\Base Images\non sysprep\basexp.002"

del /F /s "\\kcm-altiris2\Images\Base Images\non sysprep\basexp.img"

Once again, I would like to use WISE if possible.

0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity



If you want, you can use vb script to delete files on your network drive.

Here is a sample script;

dim filesys
Set filesys = CreateObject("Scripting.FileSystemObject")
If filesys.FileExists("\\kcm-altiris1\Images\Base Images\basexp.002") then
filesys.DeleteFile "\\kcm-altiris1\Images\Base Images\basexp.002", True
End If
Set filesys = Nothing

Hope this one helps.

knight [;)]
Answered 11/17/2005 by: knight
Orange Senior Belt

Please log in to comment
you can incorporate this script in Wise if thats what you want by creating a customaction type 38

Answered 11/17/2005 by: rikx2
Purple Belt

Please log in to comment