Jump to content


VertigoRay

Established Members
  • Posts

    2
  • Joined

  • Last visited

About VertigoRay

  • Birthday 08/21/1980

Contact Methods

  • Website URL
    http://vertigion.com

Profile Information

  • Gender
    Male
  • Location
    76226
  • Interests
    Computing

VertigoRay's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Good start cravion. Your script seems a bit excessive though. Here's a quicker version that should do the same thing. Also, AppData location may be changed ... so use %AppData%. Set oFSO = CreateObject("Scripting.FileSystemObject") Set oShell = WScript.CreateObject("WScript.Shell") If oFSO.FileExists(oShell.ExpandEnvironmentStrings("%AppData%\Roaming\Test\FichierTesteur.txt")) Then WScript.StdOut.Write "The application is installed" WScript.Quit(0) Else WScript.Quit(0) End If I used for my Dropbox detection script: Set oFSO = CreateObject("Scripting.FileSystemObject") Set oShell = WScript.CreateObject("WScript.Shell") If oFSO.FolderExists(oShell.ExpandEnvironmentStrings("%AppData%\Dropbox\bin")) Then WScript.StdOut.Write "Dropbox is Installed" WScript.Quit(0) Else WScript.StdErr.Write "Dropbox is NOT Installed" WScript.Quit(0) End If Testing it now ... thanks!
  2. I realize this is old, but you could just have an MST file place the license for you. Also, if the License file is a one liner, it may be smarter to create the file instead of copying it, such as: %ComSpec% /c echo LicenseKey=1234567890 > %ProgramData%\mypath\license.lic Since you're getting access denied, I would venture to say that you're accessing a \\server\share as the System account and have not give Domain\ComputersGroup access to your share. The AD Computer objects have to have permission to the share, since that's what account the System accounts authenticates as.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.