/build/static/layout/Breadcrumb_cap_w.png

Upload file

Hi

Are there a way to upload 1 or more file(s) with a wildcard via scripts?
Or do I have to zip a folder and upload that ?

I was looking after uploading BSOD dumps (C:\Windows\minidump\*.dmp) but if I do that then it will just create a file called "*.dmp" in the machine info :/

And how do I delete the files ?

I could just make a script that copy them to a network share, but this could be nice in other scenario's aswell.

- René

0 Comments   [ + ] Show comments

Answers (4)

Posted by: GillySpy 13 years ago
7th Degree Black Belt
0
You would have to do this in batch. There is no canned mechanism for upload of a directory or the new file in a directory, etc.

You cannot delete the file directly. You can upload a file of the same name overtop ( 0 byte to clear it) or delete the machine from inventory. A zip file would help to manage this.
Posted by: cblake 13 years ago
Red Belt
0
René - Would a command line zip utility as part of a script help serve your needs? 7zip, winzip, and many others have command line options. You could write a script that zipped them, then use your other favorite method for collecting them (Customer ticket rules and custom inventory rules possibly). I think storing them on K1000 is not the best route though.
Posted by: rmeyer 13 years ago
Second Degree Blue Belt
0
Ok, thanks, I'll make a script that zip & copy them to a share in a folder with the name of the PC then if I cannot delete them easily, there are no reason why they should be taking up space on the KBOX and remembering to run a "cleanup" after will most likely never be done :)
Posted by: rmeyer 13 years ago
Second Degree Blue Belt
0
Another question related to the minidump folder ;)

I would like it to return the amount of files in the minidump folder if it exist, so I would know what PC's might have an issue that I should look into
So I created a Custom Inventory item:

DirectoryExists(C:\Windows\Minidump)
AND
ShellCommandTextReturn(dir C:\Windows\Minidump\*.*|Find "File(s)")

BUT if I use the > |Find "File(s)" < it will not return any information.
If I change it to: ShellCommandTextReturn(dir "C:\Windows\Minidump\*.*")
then it returns the normal "dir" information but I would like to keep the custom inventory to a one liner in the inventory.

I would like to avoid creating scripts that need to run every now and then to return this information when there is a easier way :)
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ