Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: anarchoi
  • Order by date
  1. anarchoi

    problem with a self-delete script

    Ok i got it to work now.... i just had to declare my variables like you said..... i'm dumb !! thanks a lot!
  2. anarchoi

    problem with a self-delete script

    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...
  3. anarchoi

    read a text file then copy content into clipboard

    Thank you all for your helpful information.
  4. anarchoi

    problem with a self-delete script

    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()...
  5. anarchoi

    read a text file then copy content into clipboard

    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 =...
  6. anarchoi

    read a text file then copy content into clipboard

    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...
  7. anarchoi

    read a text file then copy content into clipboard

    Thanks, But now i'm still wondering how i can replace sText = "some text to clipboard" with the content of filelist.txt
  8. anarchoi

    read a text file then copy content into clipboard

    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
  9. anarchoi

    read a text file then copy content into 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)
  10. anarchoi

    read a text file then copy content into clipboard

    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...
  11. anarchoi

    delete all files except the ones created less than 30mins ago

    ok... but can you help me with my problem?
  12. anarchoi

    delete all files except the ones created less than 30mins ago

    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...

Part and Inventory Search

Back
Top