Posts by OldSchool • 191 points
10 posts
-
1
votes1
answer355
viewsA: Create a scheduled task on Windows XP 32-bit
It’s really not possible to create (and recreate) tasks per command line in Windows XP. The solution I came up with was to create in a single task several triggers which is very annoying, so I would…
-
2
votes1
answer355
viewsQ: Create a scheduled task on Windows XP 32-bit
I want to create or modify a task per command line, that on the same machine. I’m using the command Schtasks with argument /Create. But I only got on Windows 8, when I took the BAT to the machine…
-
2
votes3
answers1929
viewsA: Operations with dates (delete file with date in name and earlier than 6 months) without using Forfiles
Finally I ended up finishing the code, as I imagined it got big, but not as much as I thought it would (This SCRIPT got a level above the FILES folder): Comments show how I did each step SET…
-
4
votes3
answers1929
viewsQ: Operations with dates (delete file with date in name and earlier than 6 months) without using Forfiles
It’s been a long time since I’ve dealt with VBS, so I thought I’d just do it on the command line I need to delete files earlier than 6 months from the current date, as the files I am managing have…
-
1
votes1
answer446
viewsA: Error Adding IIS in windows 7
Try this, type in the start menu cmd, right click on it and select the option Executar como Administrador. Type the following command: Servermanagercmd.exe -install Web-Server -allsubfeatures Of…
-
2
votes2
answers4905
viewsA: Hide a running app or bat
The only solution I know is using VBS. Open the notepad and put the following code: Dim wshShell Set wshShell = CreateObject("WScript.Shell") wshShell.Run "seusscript.bat", 0, false In place of…
-
2
votes1
answer113
viewsA: Identify which partition is running the script from
I got it, the remote cd since it is also a variable: echo %cd% rem Exemplo Windows XP: C:\Document and Settings\{currentuser} rem Exemplo Windows 7: C:\Users\{currentuser} To get only the partition:…
-
2
votes3
answers2225
viewsA: File . bat does not run
I did it this way and it worked echo off cls for /F %%i in (%homedrive%\estacoes.txt) do ( SHUTDOWN /s /t 01 /m %%i ) Example of the list I made: windowsxp portaria novowindows I tested on a Windows…
-
2
votes2
answers294
viewsA: Boost Performance Bat
I don’t think it will improve the performance in BATCH itself, it seems simple enough, but avoid using special characters even in the comments, such as letters with accents and cedilla, also avoid…
-
1
votes1
answer113
views