the error is on line 66 "compilation error expected statement)"
I tryed putting Option Explicit at the begginning but then i would get an error saying "strComputer variable not defined".... But without Option Explicit this part of the script works
as for WshShell.Popup maybe the problem comes...
i made an installation script... it is working but i have a problem with the last part.
At the end of the script, i want to delete the current script after installation is complete
here is the code i am using to self-delete the install:
Option Explicit
DeleteSelf
Sub DeleteSelf()...
i just tryed it, but it doesn't work :(
It says it can't create the activex object "word.application"
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd.exe /c echo hello world | clip", 0, TRUE
strMessage = "Imagine that, it works!"
Set objWord =...
thanks a lot !! it's working
Only one last question:
Is there another way to copy the infos to clipboard (without using IE)
the problem is that a window pop up every time saying
"Do you want to allow this webpage to access your Clipboard?
If you allow this, the webpage can access the...
thanks but that's not what i want to do
I only want to put the result of my script (what is usually written in filelist.txt) inside the clipboard
Or open filelist.txt after it has been created and put the content inside the clipboard
i'm really newbie to vbscript.... could you help me to get it work with my script ?
I can't find how to replace "Hello This Is A Test" by the content of the text file (filelist.txt)
Hello,
Here's what i want to do :
i already have a script that will list all the files inside a folder then make a text file with the infos (i posted the code below)
But i want to copy the files list to the clipboard instead of writting the result in a text file.... could someone help me to...
I'm using this script:
Set objFileSys = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFileSys.GetFolder("C:\DVR_Media\video")
For Each Folder In objFolder.SubFolders
FolderCreated = Folder.DateCreated
FolderAge = DateDiff("d", FolderCreated, Now)
If FolderAge >= 0 Then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.