Jump to content

How to put FileVersion into my clipboard after getting it?


Dion07
 Share

Recommended Posts

What I am trying to do sounds simple, but I am not certain how to accomplish this. 

I am needing to grab the file version of an EXE on my network, then make a new folder named as said file version in another directory. 
I am using the following (based on what I have found in these forums) for getting the File Version, which works and displays it in a pop up. 

MsgBox(0,'', FileGetVersion("\\path\file.exe"))

 

How would I change this, so that instead of displaying this File Version, it instead copys it to the clipboard so that I may then create said folder and move forward with the rest of my script. 
 

Link to comment
Share on other sites

2 minutes ago, Nine said:

Or maybe this ?

Local $sVersion = FileGetVersion("\\path\file.exe")
If Not DirCreate (".\" & $sVersion) Then Exit MsgBox (0,"Error","Unable to create folder")

 

What does the second line do exactly? If that is simply making a new folder, would I set the directory like so?

Local $sVersion = FileGetVersion("\\path\file.exe")
If Not DirCreate ("C:\Somewhere\" & $sVersion) Then Exit MsgBox (0,"Error","Unable to create folder")

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...