Search found 30 matches

by MeSH
09 Feb 2018 19:28
Forum: DOS Batch Forum
Topic: [REQUEST] Create a log file when a USER insert a usb
Replies: 6
Views: 6367

Re: [REQUEST] Create a log file when a USER insert a usb

penpen wrote:
09 Feb 2018 04:26
The Log Parser should be still available for Win XP professional edition:
https://www.microsoft.com/en-us/downloa ... x?id=24659.

penpen
thanks :-)
by MeSH
09 Feb 2018 18:07
Forum: DOS Batch Forum
Topic: [REQUEST] Create a log file when a USER insert a usb
Replies: 6
Views: 6367

Re: [REQUEST] Create a log file when a USER insert a usb

ShadowThief wrote:
08 Feb 2018 21:55
XP stopped being supported two years ago; come into the 21st century already.
I don't have a choice since I am working in a government... it's hard to request a brand new PC's it takes half or years just to approve a request...
by MeSH
08 Feb 2018 19:50
Forum: DOS Batch Forum
Topic: [REQUEST] Create a log file when a USER insert a usb
Replies: 6
Views: 6367

Re: [REQUEST] Create a log file when a USER insert a usb

Good day! I installed microsoft parser but its only applicable to windows 7 and up... our computers here are mixed with windows xp & 7... So I decided to post here if ever someone can create a script for it so it can run any version of windows os v :-)
by MeSH
08 Feb 2018 01:19
Forum: DOS Batch Forum
Topic: [REQUEST] Create a log file when a USER insert a usb
Replies: 6
Views: 6367

[REQUEST] Create a log file when a USER insert a usb

Good day to all DosTips admin, staff and members here... I would like to request a script when a user insert a usb the script will log it. These are the info inside a log file: <date created>: USB Connected/Disconnected: <computer name>: <time inserted/eject> Example: 02-08-2018: USB Connected: PC01...
by MeSH
11 Feb 2015 23:16
Forum: DOS Batch Forum
Topic: How to rename a file with a date filename
Replies: 6
Views: 5734

Re: How to rename a file with a date filename

Where do you get the date for the file name? it's only a holder (currentDate.xlsx) it means that if anyone here will supply a code for that then the currentDate will be his/her reference where he/she will put the code. it's like currentDate as Date = Date.Now MessageBox.Show("Date for today: &...
by MeSH
11 Feb 2015 20:15
Forum: DOS Batch Forum
Topic: How to rename a file with a date filename
Replies: 6
Views: 5734

How to rename a file with a date filename

hello everyone! at last I remember my password here since our place was hit by Super Typhoon Haiyan... here's my question now how can I rename "report.xlsx" to current date today? if i run this code: COPY "report.xlsx" "%SystemDrive%\Users\%UserName%\Desktop\currentDate.xlsx...
by MeSH
18 Jul 2013 01:11
Forum: DOS Batch Forum
Topic: Log all File Extensions
Replies: 3
Views: 3402

Re: Log all File Extensions

This idea was developed in the past by clever people. Add a /s and it can process subdirectories too. @echo off for /f "delims=" %%a in ('dir /a:-d /o:n /b') do ( set /a $%%~xa+=1 ) set $ pause thanks! gonna test this now... btw i will put it inside "Folder" folder? or outside &...
by MeSH
18 Jul 2013 00:27
Forum: DOS Batch Forum
Topic: Log all File Extensions
Replies: 3
Views: 3402

Log all File Extensions

My thread was closed and they said that if I have a new question better to create a new one because it will conflict on other user to read it... so here I am asking a new question How to log all file extension inside that folder? like this one Folder\1.txt Folder\2.txt Folder\3.txt Folder\4.jpg Fold...
by MeSH
13 Jun 2013 02:30
Forum: DOS Batch Forum
Topic: Need Batch Script - New Question
Replies: 47
Views: 42607

Re: Need Batch Script - New Question

foxidrive wrote:

Code: Select all

echo off
for /f "delims=" %%a in (' dir /ad /b ')
set "folder=%%a"
setlocal enabledelayedexpansion
set "folder=!folder:_=!"
ren "%%a" "!folder!"
endlocal
)
pause


sir the syntax of the command is incorrect :(
by MeSH
12 Jun 2013 22:40
Forum: DOS Batch Forum
Topic: Need Batch Script - New Question
Replies: 47
Views: 42607

Re: Need Batch Script - New Question

Here's one technique: echo off set "folder=Folder_Set_1" set "var=%folder:_=%" ren "%folder%" "%var%" thanks it work! but is there a possible way to do it on multiple folder? like: New Folder\Folder_Set_1 New Folder\Folder_Set2 New Folder\Set_Folder_1 New Fol...
by MeSH
12 Jun 2013 08:17
Forum: DOS Batch Forum
Topic: Need Batch Script - New Question
Replies: 47
Views: 42607

Re: NEW QUESTION: DELETING A SINGLE "WORD or NUMBER"

thank you Antonio! I used the no. 1 the no. 2 example is confusing me :facepalm I'm using now and it's really great! my script has designs now NEW QUESTION how to delete a single word or number in a directory name? like this one in the "New Folder" directory there are 3 sub-folder Folder_...
by MeSH
21 May 2013 05:48
Forum: DOS Batch Forum
Topic: Need Batch Script - New Question
Replies: 47
Views: 42607

NEW QUESTION: DELETING A SINGLE "WORD or NUMBER"

thank you Antonio! I used the no. 1 the no. 2 example is confusing me :facepalm I'm using now and it's really great! my script has designs now NEW QUESTION how to delete a single word or number in a directory name? like this one in the "New Folder" directory there are 3 sub-folder Folder_S...
by MeSH
06 May 2013 20:02
Forum: DOS Batch Forum
Topic: Need Batch Script - New Question
Replies: 47
Views: 42607

Re: Need Batch Script - New Question

hi guys thanks to all who help me on my previous question.... is there a possible way to center this? this is the code provided by Antonio aka Aacini @echo off setlocal EnableDelayedExpansion set i=0 for %%a in (" ______ __ __ ________ ______ ______ __ __ ________ " " / \ / | _ / |/ |...
by MeSH
04 May 2013 23:40
Forum: DOS Batch Forum
Topic: Need Batch Script - New Question
Replies: 47
Views: 42607

Re: Need Batch Script - New Question

about your post above this.. sorry but i gave up on that i don't get it i think i need to dig more for gaining knowledge... My code is a substitute of abc0502's one. I taken the program you posted under "is this correct sir?" comment and replaced the :VBS: code by my own. Here it is: @if ...
by MeSH
03 May 2013 18:43
Forum: DOS Batch Forum
Topic: Need Batch Script - New Question
Replies: 47
Views: 42607

Re: Need Batch Script - New Question

Ops! Why he did changed the topic at the middle of it! (bad idea ) Ok, new answer to new topic! @echo off setlocal EnableDelayedExpansion set i=0 for %%a in (" ______ __ __ ________ ______ ______ __ __ ________ " " / \ / | _ / |/ | / \ / \ / \ / |/ |" "/$$$$$$ |$$ | / \ $$ ...