Search found 10 matches

by technotika
05 Oct 2016 12:55
Forum: DOS Batch Forum
Topic: report UNC path of folder in a mapped
Replies: 3
Views: 4468

report UNC path of folder in a mapped

Hi All, I am trying to put a batch together that searches through the mapped drives of PC, finds a specific folder, then reports back the full UNC of that folder. A customer PC has say three mapped drives N:\ Y:\ S:\ I ask them before I visit to create a folder called "Folder_Work" in the ...
by technotika
20 Apr 2015 04:01
Forum: DOS Batch Forum
Topic: Scan network neighbourhood PC's for a certain folder
Replies: 1
Views: 2252

Scan network neighbourhood PC's for a certain folder

Hi I was hoping to make a batch file to scan the local area network PC's for a certain folder so I can see which PC's need an update. I can do this if I have the hostnames already but I dont have this info a lot of the time. so something that scans the pc's on the lan reports a list of hostnames tha...
by technotika
27 Mar 2015 09:44
Forum: DOS Batch Forum
Topic: updating the date in an output file
Replies: 1
Views: 2556

updating the date in an output file

FINDSTR "^%computername%$ %date%$ %username%$" < %DESKTOP% >NUL || ECHO %computername% %date% %username%>>%DESKTOP% Hi, Hoping for some help here. The above batch code I use as part of an install script to silently install some software and do various other things to automate the process. ...
by technotika
27 Jan 2015 18:54
Forum: DOS Batch Forum
Topic: Batch to kill installer process to move on with the script..
Replies: 3
Views: 4049

Batch to kill installer process to move on with the script..

Hi Guys I'm trying to make a batch file that makes a long install process, a lot more streamlined. Basically I want the batch to call a silent installer, then copy a xml file to save GUI config, the set folder permissions, and finally copy documentation. Most of this is done but I'm stuck on the sil...
by technotika
27 Dec 2013 08:16
Forum: DOS Batch Forum
Topic: simultaneous file copy
Replies: 1
Views: 2845

simultaneous file copy

Hi I have a script that requires multiple PC's to copy files from a server to their C drives. I can loop it in a list of hostnames but I want the file copy command to to cycle through the list of hostnames without waiting for the files to copy - hope that makes sense. ECHO on color 1f pushd %~dp0 fo...
by technotika
11 Jan 2012 06:38
Forum: DOS Batch Forum
Topic: find a file, rename it, then rename back again...
Replies: 2
Views: 4870

Re: find a file, rename it, then rename back again...

Problem being the file can reside in any number of sub dirs under a particular root dir. C:\.Marimbatuner\ The files are delivered in channels from a software distribution service on the network and be place in any folder depending the order in which the channels are delivered to the PC's. So really...
by technotika
11 Jan 2012 05:18
Forum: DOS Batch Forum
Topic: find a file, rename it, then rename back again...
Replies: 2
Views: 4870

find a file, rename it, then rename back again...

Hi Guys Just hoping to see if this is possible in batch..... I run a "clean up script" that does various things, cleans junk, runs cmd line defrag util, also a piece of freeware that deletes tmp files. However its come to light that two files with extentions of .tmp & .bak are being re...
by technotika
02 Jun 2011 07:33
Forum: DOS Batch Forum
Topic: %%A not translating as variable
Replies: 4
Views: 5019

Re: %%A not translating as variable

FANTASTIC - thank you very much So if I have loads of commands to do for each machine in the hosts.txt as long as I have it all in ( ) It's all good e.g. @echo off for /f %%A in (C:\hosts.txt) do ( code code code code code codecode code codecode code codecode code code pause code code codecode code ...
by technotika
02 Jun 2011 07:09
Forum: DOS Batch Forum
Topic: %%A not translating as variable
Replies: 4
Views: 5019

Re: %%A not translating as variable

thanks for quick response...still no joy code test @echo on E:\PsexecTMA>for /F %A in (C:\hosts.txt) do Echo %A E:\PsexecTMA>Echo COMPNAME <SUCCESS there but..... Z1012030 xcopy /herky "C:\BUILDS\TMA HHDC Applications\ConsumptionAdministrator-2.0.5.msi" "\\%%A\C$\Temp" E:\PsexecT...
by technotika
02 Jun 2011 06:33
Forum: DOS Batch Forum
Topic: %%A not translating as variable
Replies: 4
Views: 5019

%%A not translating as variable

Hi , I'm struggling to get a batch file to run against a list of hostnames heres some code where the issue occurs @echo on for /f %%A in (C:\ hosts.txt ) do xcopy /herky "C:\BUILDS\TMA HHDC Applications\ConsumptionAdministrator-2.0.5.msi" "\\ %%a \C$\Temp" and here is the error C...