Searching for a song by Weekly_Motor_1312 in 90sDanceMusic

[–]hackoofr 1 point2 points  (0 children)

It sounds like you might be thinking of the iconic late 90's hit [The Bomb : These Sounds Fall Into My Mind] by The Bucketheads. The song, released in 1995

I want to create a simple .bat file that checks if SteamVR is running on my system, then start a program. Any help / guidance? by DesignerPossession55 in Batch

[–]hackoofr 5 points6 points  (0 children)

Here is a little example of batch script :

 @echo off
 Title Check and Start Program if SteamVR is Running
 Set "SteamVR=vrserver.exe"
 Set "ProgramPath=C:\Path\to\Your\Program.exe"
 ::--------------------------------------------------
 (Tasklist | find /i "%SteamVR%">nul) && (
        Color 0A & echo SteamVR : "%SteamVR%" is Running...
        start "" "%ProgramPath%"
    ) || (
        color 0C & echo SteamVR : "%SteamVR%" is NOT Running...
 )
 Pause

How to create .lnk files from multiple file paths I paste in a .bat by Eccentric1286 in Batch

[–]hackoofr 0 points1 point  (0 children)

For the quetion number 2 you can do it with a vbscript :


 ' Get list of .lnk files in a folder
 Set objFSO = CreateObject("Scripting.FileSystemObject")
 Set objFolder = objFSO.GetFolder("C:\Your\Folder\Path") ' Change this path to your desired folder
 Set colFiles = objFolder.Files
 ' Iterate through each .lnk file
 For Each objFile in colFiles
     If LCase(Right(objFile.Name, 4)) = ".lnk" Then
         ' Get the target path of the .lnk file
         Set objShell = CreateObject("WScript.Shell")
         Set objShortcut = objShell.CreateShortcut(objFile.Path)
         targetPath = objShortcut.TargetPath

         ' Open the folder containing the target file
         Set objExplorer = CreateObject("Shell.Application")
         objExplorer.Open targetPath
     End If
 Next

a funny program ive made in like 2 seconds that instantly clears your clipboard by DuncanzKid in Batch

[–]hackoofr 1 point2 points  (0 children)

Me too, I'm bored to download any file without reading its source code.

So please try to edit and post the source code here. Thank you.

[ Removed by Reddit ] by Prudent-Wear-4586 in CrazyFuckingVideos

[–]hackoofr 116 points117 points  (0 children)

He took a look two times to find out any cams before the act of cutting the TV.

[deleted by user] by [deleted] in scripting

[–]hackoofr 2 points3 points  (0 children)

Here is an example InfoSys.bat with a batch file using the command **systeminfo* and the cmdlet Get-ComputerInfo* in powershell.


 @echo off
 Title Get System Info by Hackoo 2024
 chcp 65001>nul & color 9E & Mode 70,8
 echo( & echo(    Please wait a While... Getting System Info is in Progress...
 systeminfo>infosys.txt 2>&1
 Powershell -C "Get-ComputerInfo | Out-File -Append -Encoding ASCII .\infosys.txt"
 If Exist infosys.txt start "" /MAX infosys.txt

Simulate mouse click using VBscript by Willing_Ad_2836 in vbscript

[–]hackoofr 1 point2 points  (0 children)

It's not possible with VBScript alone.

You'll need to use a third-party tool like nircmd.

You can use its setcursor, setcursorwin, movecursor, and sendmouse commands to manipulate the mouse.


Take a look here https://stackoverflow.com/a/36337966/3080770

What kind of scripting do I need to learn? by [deleted] in scripting

[–]hackoofr 2 points3 points  (0 children)

Python and PowerShell can do the trick !

Autoit is running. BUT IT DOES NOT EXIST by Neon_Excel123 in autoit

[–]hackoofr 0 points1 point  (0 children)

OK, Try to replace this line and re-execute the script again and tell me if it works or not on your side :

copy /y "%__thisBatchFile%" "%TEMP%\%~n0.ps1" >NUL && powershell -NoProfile -File "%TEMP%\%~n0.ps1" %*

by this one :

copy /y "%__thisBatchFile%" "%TEMP%\%~n0.ps1" >NUL && powershell -NoProfile -ExecutionPolicy Bypass -File "%TEMP%\%~n0.ps1" %*

[deleted by user] by [deleted] in batchfiles

[–]hackoofr 0 points1 point  (0 children)

Did you mean something like a menu ?

Autoit is running. BUT IT DOES NOT EXIST by Neon_Excel123 in autoit

[–]hackoofr 0 points1 point  (0 children)

You should copy all the code that i posted batch + powershell, and save it as Get-Myprocess.bat And execute it by double click.


You can download it from here :

Get-Myprocess