Hot Solutions

Tags:Windows 2003, vbs

Hi,


Is there an easy way like by command to list folders size and put the infos in a text file?


Thanks.

Hello,

I have log files created in text format. I need to identify issues by certain log file comments, and I often have to wade through pages and pages of log files to find what I am looking for. perhaps, there is a better way.

I would...

Hi there,

I need to silently and remotely install dotNetFx40_Full_x86_x64.exe.

The following command line does not work.

PSEXEC \\RemotePC /i /u DomainName\Username /p password C:\Windows\System32\msiexec.exe /i...

im doing a MCTS course and im trying to import some computers into active directory useing ldifde.exe code below

dn: CN=SERVER10,OU=Servers,DC=contoso,DC=com
changetype: add
objectClass: top
objectClass: person
objectClass:...

Tags:postgresql batch

Hi,

I want to create a batch file that backup our postgresql database schema. But I also want it to look in the backup folder how many files there are. If there are already 4 backup files, I want the batch file to delete 1. So the maximum of...

Tags:SQL Server, robocopy

I have a script that runs every evening to copy SQL Server files from our server to a USB hard drive.  On many of the SQL Server files, to include the database, there is the message ERROR 32 ... The process cannot access the file because it is...

Hi there,

In line 11, the data is extracted in a way that lines 14 and 15 does not work as expected.

Thanks for your help,
Rene

 

Hi All,

So I am using timethis.exe from microsoft to time how long xcopy takes to transfer a file. I then take this output, run a FOR loop against it to get the bit I want: the "Elapsed Time".

Now, from here I want to do some other things...

Simple question:

%logonserver% what does it use WINS or DNS?

Please clarify. We have a name resolution issue with a script that runs, it uses %logonserver% so we need to know if this uses DNS or WINS.

Thanks,
J.

Hi,

I have a batch script that when run I want it to wait 20 seconds before executing the command inside the batch script.

I am currently achieving this by having the batch script ping something for 20 seconds. I would be happy to keep on...

i am trying to get all email addresses from a  specific domain on our network.  

C:\>dsquery user -limit 0 "DC=test,DC=test,DC=test,DC=US" | dsget user -samid -Email > c:\mytextfile.txt

each time i run this it limits me to only 100 records....

Tags:Powershell DOS Batch

I'm new to powershell but thought it would be the best place to start looking for a solution. I have an application that receives files from some of our customers and places them in a folder "C:\incoming". The problem is that I need to know what...

Tags:Outlook 2010

hi

i would like to archive my emails in outlook but instead of moving them from my inbox to my archive folder is there a way to keep a copy in my inbox and a copy in my outlook mailbox.

right now archiving moves mail from the inbox to the...

Tags:Logon command

Good afternoon experts,

This is probably an easy answer, but for the life of me I cannot find a solution to how I can send a command to logon to a Windows 7 machine from the logon screen. Below is a screenshot of what I am talking about.

...

Tags:Primavera

I am looking for free downloadable links for manual, tutorial, checklist, samples, video clips on the latest Primavera.  Appreciate your providing these resources.

Tags:MS-DOS commands

Hi experts,

I need a batch file which basically has to call an application (my_app.exe) in a loop every 10 minutes.  How can I do that?

Thank you in advance.
Regards,
Raul

Hey guys,

I have been working on a script to back up data to a zip file for recovery later. Although I have found most of the information I need online, I am having an issue finding a complete answer to my problem.

I have this bit of code:...

Tags:windows server 2003 R2, robocopy

I wanted to know how would I use the robocopy command if I want to copy files from one folder to another without overwritting any files already in the destination folder?


I'm currently using this synatx for moving everything from one folder...

Tags:Forefiles DOS Bartch Files

Hello,

I like to delete files that are 20 hours or older with the forefiles DOS command. I have this so far, which is set for 1 day, but how to change the command to delete files 20 hours or older?

forfiles -p "X:\SQL-Backups\ArcSDE" -s -m...

Hi there,

I need to convert the following script that I think is VBScript, to a Batch File.

Thanks for your help,
Rene

SOURCE: http://codesnippts.blogspot.ca/2010/07/public-sub-softwareinformationvbsbyval.html

 

Tags:batch file, scripting, ms dos, windows

I have 2 directories to check each day--each day a file is created and given a name like Wed-2012-03-07.pdf
1) First directory has at most 3 files in it--need to check to see if there are three, if there are three need to delete the oldest one...

Tags:script, delete folder, windows admin, networking

Experts,

I have a folder called Test.
The location path is: C:\Program Files\Test.

Inside the Test folder I have a whole bunch of programs that I don't need.

I need to delete this "Test" folder in over 100+ computers and I don't want to...

I need  a batch file to restart a computer. It's a Win 7 box, so if there is a way in Win 7 to restart a machine on a schedule, then that would work just as well.

Else, I was planning on using Windows Task Scheduler to launch a .bat file.
...

Tags:blat batch email escape

Folks

I'm sure this is a very simple fix trying to integrate blat.exe email alerts into an existing batch file but there must be some characters not being escaped properly or something that is causing it to fail.

Can someone give me some...

Hello. I have a question to ask you.

Regarding Windows 7 64-bit, I notice when you drag and drop file(s) or folder(s) between 'DIFFERENT drives', it 'copies' the file(s) or folder(s) to the other drive leaving the original file(s) or folder(s)...

Hi there,

The FOR loop between lines 13 and 17 does not work.  However, if I remove it from the FOR...%%A... loop, it works.

Could you please fix it?
And while at it, if you have ideas to improve my script, please share your wisdom.
...

Hi All

I am trying to create a batch file that will rename a log file, and recursively add a number.

For example

Test.txt to change to Test.2, then on the next day Test.3 etc

Need it to change directory to

D:\PloneNew\var\log
...

Tags:msdos, dos 6, copy, multiple floppies

I have an old Dos based system and I need to copy it to another system but it only has a floppy drive. How do I copy the very small hard drive to multiple floppies?

Hi Guys and Gals

Following on from this thread:

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/Q_27626476.html

Im looking to alter my batch script so that it keeps going to the start of the script if there are...

Tags:Batch file, file processing, perl, powershell

I have a directory of 770 text files.  I need to insert a carraige return at the end of each file.  What's the best way to do this?  Batch file, powershell, perl-I don't care the coding style.  Thanks!

I have a csv file with computer names and main user names. I want to create a batch file that only runs if the username = the computer name in the list. How would I accomplish that?

Thank you,
Lori

Hello,

I work on several PCs which are mostly xp and w7. these machines are not connected and are at multiple locations around the UK + my laptop.

What i'd like to write is a batch file that will, at set times of the day, upload via FTP new...

Tags:DOS, Batch files, xcopy

I have a DOS command scheduled batch file to copy files in a directory if they have been modified since the last xcopy, like the following:
    xcopy Z:\temp Z:\temp2 /D /E /C /H /R /Y

This is working well. One of the copied files is a MS...

Hi,

I have a Oracle 9i database, for which i have to export the full database
1) once a week
2) delete the files older than a certain date. (Ex:older than 30 days).

Does anyone have a batch file for this, which i can use it in the Task...

hi
i need to made a .bat file that do a rename if find a file, if dont, do the opositive thing
somthing like this
g:
cd proyectos
cd 1008
cd psds
cd isoextractor
cd config

if  exist pipo_tuberia.ini

ren pipo.ini pipo_electrico.ini...

Tags:DOS shell.

Would like to get the right value in this script:

@echo off
SETLOCAL ENABLEDELAYEDEXPANSION

set N=10
set var=A
for /l %%i in (1,1,%N% ) do (
  @echo %var%
  if %%i lss 3 (
    set %var%=B
  ) else (
   if %%i lss 6 (
     set...

Tags:ACCESS VBA EPL WINDOWS 7

Hello to all developpers from an ACCESS developper. I want to send EPL command from VBA ACCESS 2010 - I found many information about other platforms that i cant make work on my VBA solution. The less i would appeciate would to be able to send a...

Tags:remove, text file, dos, script

Experts,

I need to remove multiple text files via the command line.
In example:
C:\1.txt
C:\2.txt
C:\3.txt
C:\4.txt
C:\5.txt

------------

I tried the following batch file with no success, deletes the first line and then the batch...

When I run a certain program (in a 32 bit computer) from the command prompt, the command screen remains open so I can enter some parameters that i need in order to the program to work.
 However, if I run the same program in a 64 bit pc i dont...

Tags:%DATE% SYSTEM DATE

Hello,
I am going to create a small batch file in dos .cmd file. In that I need to get the current date-1 day into a variable.
So lets say today is 20-04-2012, then I will need to have the value set to a variable called mydate as 20120419
...

Tags:VBScript, DOS, VB

Hi,

I have a file located in C:\Temp named 'giantfile.txt'.  It's about 2 million rows.  The very first column has about 50 different values in it.  I need to create smaller files from this file based on the value in that file.  So if there...

Hi there,

I need to map a network drive on a remote PC.

Similar to another question I have in progress:
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/Q_27589419.html

Thanks for your help,
Rene

Hi there,

Logged on as a domain admin, here is what i tried, but it does not work:
 

By the way:
-I have full access everywhere
-I can run "psexec \\RemoteSitePC CMD" and type a command
-When logged on RemoteSitePC, I can run:
XCOPY /Y...

Tags:dos, batch, command

I need to get a list of every file in a directory, 500,000 is the biggest directory.

I found the batch file I can run listed below. How would I modify it to show the last access date or the modify date? I don't mind running it twice I'm just...

Tags:Windows Batch Files

I have a batch file that users use to get the latest version of various Access databases - called update.bat. As I just created a new database for distribution, I want to place a short cut on their desktop as well as place the database file in...

Tags:Batch file, Server 2008

hi guys

I've got a .bat file which I am trying to edit. It's for the 'hosts' file on the PC. Manually it wouldn't allow me to change it, even though I'm an Admin, so I found a batch file and ran it as an admin and it made the changes.

One...

Tags:Dos 6.2, Variable, Set, MD

I need to create commands in the autoexec.bat file in a DOS 6.2 system that will create a unique directory and then copy files from one directory into that unique directory each day.  In other words I want to back up the days data files in a new...

Tags:VBScript, VB, DOS, Batch

Hi,

I have a directory that has a bunch of txt files.  They were derived from a much larger file.  I need to make sure the number of rows in all the files match exactly the number of rows in the original.  Just to make sure the original was...

Hello,

Writing short MS DOS batch (.bat) file for Windows XP and need to test result of NET USE.

Here's the pseudo-code of what I'd like to do...
 
What bat code would accomplish this?

Thanks,
Jason

Tags:MS-DOS

I am using a post processing command to copy one file to another file with a date stamp at the end of the file name.  I found an example of adding the date stamp,  but it adds the date stamp in the wrong format.  Currently, the date stamp is in...

Tags:Ms DOS

HI
BY USING DIR command in msdos cmd promt i am getting to store my video files names in a folder but i require to get each video file length also..
please provide the command syntax or is there any tool available which helps to do that

thanks

Tags:java jfreechart

For a method that has a Boolean parameter, as opposed to boolean, is it acceptable to use true or false?

For example, AbstractRenderer.setSeriesVisibleInLegend(Boolean visible):
 
or would it make a difference in doing:
 

Tags:Bat, Batch, MS-DOS, DOS, Scripting

I need to create a batch file to delete subfolders and files that are contained in the Daily folder shown below.

Here is the path:
C:\Program Files (x86)\Avaya\IP Office\Voicemail Pro\VM\Back Up\Scheduled\Daily

Every night a folder...

hello, we have the following POSH script to toggle a specific registry key value to a 0

however, many of our client PC's are windows XP and this POSH script will not run for them. can someone provide a VBscript version or batch file that will...

Hi Guys and Gals

I'm in the process of converting all my dvd and bluray media into xvid files to store on a network drive that I can access around the house. I do this first by ripping the dvd/bluray into a .MKV file then i personally name the...

Tags:SQL Server 2008, DOS

I have written a stored procedure to pull info about files from another server that is not a db server.  In the proc is this code:


SET @vchCMD = 'dir \\server_name\folder_name\ /b /s';      
      
INSERT INTO #DirList
exec master..xp_cmdshell...

Hello everyone, I need to create a batch file that will copy (from a location on C) and replace a single file. However the problem I have is that based on the OS the user is running the file could be in a different location on the hard drive (XP...

Tags:dos printing terminal server

I have windows server 2008 R1 32 bit installed in a virual machine with the terminal services role installed.  My goal is to get our old 16 bit dos program to run in TS.

What isn't working is the "not regular" printing, and by that I mean our...

when I was changing font in Notepad, IE crashed (the message is IE has stopped working - a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Button: Close Program
...

Tags:script, ping

Hi experts

We have some guys refitting our server room, this week, im concearned they could knock a cable out so im looking for a script to monitor the servers.

Im thinking a constant ping which emails me if a server stops responding. Any...

I'm looking to write a bat file that takes the characters at the beginning of the filename until the first underscore, pad the characters with zeroes if they are less than 6 characters, (without renaming the file) and move the file into a...

I have two users.  If Administrator logs in I want to run this code:

cd C:\Terminal Share\
start "" /wait "CAP Tracking System at CAP.exe"
logoff


If Intern logs in then I want to run the following code:

cd C:\Terminal Share\
start...

Tags:FTP Batch Script File Xfer

Hello everyone,

I am need help getting a script that will transfer a file from our server to an remote ftp server.

The script should do the following:
 Take a file from a folder our server and rename the file appending a date/time stamp...

Hi Experts

I have created a .bat file that merges all .csv files into one master file to import.

I have used

copy *.csv importfile.csv

I want to add a function that once the master file is created it the removes all duplicate lines...

Hey guys,

I have a script that calls a splash screen with the following couple of lines:

 

Now all I need to do is run the command to kill it once the script is complete. As I don't want to just kill the mshta process as a whole (as this...

Tags:TextFileCompare

Hello team,
Is there a way to compare 2 text files using PowerShell?
thx

JohnE

Tags:hp switch

dear experts,

i have switches " HP V1910-24G-PoE (170W) Switch JE008A" connected to my network and these switches ip from DHCP. now if i have node IP connected to that switch, how i can get that what ip and belongs to one specific switch. ...

Tags:dos batch file

Hi,

I would like to change an ODBC datasource depending on whether a laptop is logged onto the local domain or outside in the big wide world. I am currently just pinging the domain controller but this relies on either the user not being...

Hi there,

I my batch file, need to extract "Assembly Number" from an executable.

For example, if you right click on the exe -> properties -> Version -> Assembly Version

I actually found the following, buy the download link does not work....

Tags:SharePoint 2010

Hello,

Can you recommend some atricles on the best practices for installing and configuring SharePoint 2010?

Articles that would recommend the types of accounts to use, settings and options to use.

Thanks

I have received about 100 files from a customer, they are jpg images for storing on a web site. My computer is Windows XP. Also about the same number of pdf.

For whatever reason, they are named <filename>.jpg.jpg. The extension jpg is there...

Tags:Windows server 2003, batch file

Hi Experts,

I have this batch file which deletes files older than 7 days in two different locations.

Is it possible to use mailsend.exe to send a list of files deleted for each forfiles statement?

 

Is there a way to make a batch file or something where it will automatically create a shortcut on the desktop for RDP with an IP address already programmed into it.

So in effect, it will help individuals who are computer illiterate to make an...

Is it possible to make an RDP file that has the password already saved in it?

Tags:remote comptuting

Hi experts,
I am logging into a remote computer via a secure gateway to my work. The remote computer will not accept any keyboard input from my home laptop. I was thinking I would use a dos command shutdown -t 0 -r -f which I was able to paste...

Tags:redirecting LPT1 to file

Hello Experts !

My client has a Fortran 77 program, running in Windows 7.
program is hard coded to print to LPT1.

Files we need to retrieve are binary, but program will print them to paper in readable text.
We need to get the files into...

Tags:syntax sharepoint filenaming

Hi All,

Have a problem with a client. Need to upload documents to Sharepoint / Office 365 but getting an error and its down to a filenaming issue.

My client for the last 6 year has been adding a "." a the end of file he saves

So the net...

I have a function like:

char testData[256] = "This is my test data";
bool dataReturn(void * data, int nSize)
{
// put testData into data

return (1);
};

and I want to put some data into 'void * data' from within my function and have...

Hey guys,

I have an MPLS line between two seperate networks. What command do I use to see the OS of a specific IP that I am pinging?

Tags:VBScript, Script, DOS

I have a giant file, but it's too big to open up in any editor thus I don't know what the delimiter is.  Is there a script that can just take the first 100 lines of it to a new file and not change the original at all?

I need a script that runs on XP that pings a host every minute.  If the ping fails, it tries again in a few seconds.  If it fails again after three or four tries, the script sends an email to me.  I will need to run multiple instances of the...

Tags:winxp crash, partitioned with Windows 98, extract files

The situation is a restart loop, as discribed in a previous discussion.  I have an old windows 98 installation on the same computer with XP, that I can access through Safe mode, and can get the command propt.  It is on a partitioned drive hard...

Tags:windows, batch file

Is there a way to log ONLY the files that are copied from source to destination; that is new files only.

Hi there,

I just did this batch file that will simultaniously SET the time on the network computers.

If I remove the ping delay line, it is faster, but I get misc errors.

For example, I some times get findstr file not found...

I need...

Tags:Windows 7, shutdown script, shutdown

How do I run a shutdown script (preferably DOS batch file) before Windows 7 shuts down AND provide enough time for it to run - as long as 45 seconds or more?

Tags:setacl, remove permission, registry key

Hi

I have the following command to set permissions on a reg key, this is working fine, however the issue that i am having is that even though it is setting the permissions, the administrators group is still getting an inherited full control, ...

Tags:Windows 7

Good evening experts,

I was wondering if there is a way to disconnect all sessions from my Windows 7 machine from the command line.

Below is an example of the Sessions that are open:



From computer management all I do from the GUI is...

Tags:XP batch scripts in quiet mode

For each XP client that logs onto our corporate AD, we have the following script-lines running as a batch file:

IF NOT EXIST c:\windowsupdateagent30-x86.exe copy \\10.10.24.124\wuauclt\windowsupdateagent30-x86.exe c:\...

Tags:date range, copy .xls

Hi how can I create a batch file that copies all excel files based on the date of creation (date range). Example: I want to copy all excel files from January 2, 2012 to Feb 2, 2012.


Hopefully someone would be able to help me. Thanks! ;-)
...

Hi there,

I'm using a batch job under DOS prompt to perform certain tasks on Windows.

I need to know if a pattern (e.g.  P A T T E R N 2) exists in a text.txt file
from a batch file.  After checking the patter, batch file determines
what...

Tags:services microsoft windows

Experts,

Good afternoon, my user has network admin rights and I would like to know if there is a way to enable, disable, remote start the services on machines on my network.

I do not want to walk to the computer and physically enable / ...

Tags:cmdkey /list

Good evening Experts,

I recently closed a ticket that asked:

Why cant I access the shares on a set of machines in my workgroup environment

After some lengthy expert comments it came down to an offering from RobSamspon who posited:

...

I have a customer with a point of sale system that uses text files transferred to vendors to send data back and forth.  Long story short, we need to change the data in one column of several (like 30) text files from one number to another on every...

Tags:DOS serial number

I need a freeware DOS program that can read the 'real' hard drive manufacturer serial number and display it on screen.  Not the serial number created when formatting the disk!
I also need the program to be able to run on a bootable MS DOS type...

Tags:NETWORK MAPPED WIN16 DRIVE

I have two Win16 apps - Ztree and Foxpro for Windows 2.6 that have happily used mapped network drive letters for the last 15+ years.

Now they both return an error "Path not found" when trying to access the network share as drive letter N: but...

Tags:Windows 7, batch, hang, start command, command prompt, .bat, .cmd

Our Fujitsu ScanSnap scanning software is sometimes unreliable and stops responding since our move to Windows 7, despite (eventual) software updates providing official Windows 7 support. Killing two processes and restarting them, along with...

I am using a batch which should  run in the backgound. In the batch command, I need to add a delay between 2 commands..basically delay for waiting the other process to exit. The targetting OS is windows XP/ Windows Vista and Win7.

Tags:windows batch, batch program, batch script, dedupe

Hello everyone,

I have a very simple .txt file with thousands of rows.  I would like to remove the duplicate rows from the file using windows batch.  There are no columns to worry about as there are no delimiters and I would like to consider...

Tags:Batch, script

Request:
I need a batch file that finds a file on a user's PC and replaces it with a different file with the same name.  This would be run in a login script.

Background:

I have an organization that has a large number of legacy PC's with...

Tags:7zip, Winzip, Nero, Windows, Command Line

I have a project where i have to inventory the file and folders contained in a stack of CDs.  All of the files are stored in int the Nero Backup Archive file format (research shows these are actually zip volumes.)  They are backed up in the...

Loading Advertisement...

Top MS DOS Experts

  1. billprew

    140,280

    Master

    0 points yesterday

    Profile
    Rank: Genius
  2. paultomasi

    49,157

    10 points yesterday

    Profile
    Rank: Master
  3. dragon-it

    35,867

    0 points yesterday

    Profile
    Rank: Genius
  4. oBdA

    30,202

    0 points yesterday

    Profile
    Rank: Savant
  5. gerwinjansen

    25,227

    0 points yesterday

    Profile
    Rank: Sage
  6. ReneGe

    24,598

    0 points yesterday

    Profile
    Rank: Guru
  7. QCubed

    23,732

    0 points yesterday

    Profile
    Rank: Guru
  8. Bartender_1

    11,800

    0 points yesterday

    Profile
    Rank: Sage
  9. RobSampson

    10,800

    0 points yesterday

    Profile
    Rank: Genius
  10. Qlemo

    10,191

    0 points yesterday

    Profile
    Rank: Genius
  11. BillDL

    8,800

    0 points yesterday

    Profile
    Rank: Genius
  12. lionelmm

    7,446

    0 points yesterday

    Profile
    Rank: Master
  13. DaveBaldwin

    7,136

    0 points yesterday

    Profile
    Rank: Genius
  14. l33tf0b

    6,600

    0 points yesterday

    Profile
    Rank: Wizard
  15. sirbounty

    6,400

    0 points yesterday

    Profile
    Rank: Genius
  16. leew

    6,320

    0 points yesterday

    Profile
    Rank: Savant
  17. pony10us

    5,000

    0 points yesterday

    Profile
    Rank: Wizard
  18. ve3ofa

    4,552

    0 points yesterday

    Profile
    Rank: Genius
  19. ltlbearand3

    4,300

    0 points yesterday

    Profile
    Rank: Wizard
  20. TazDevil1674

    4,300

    0 points yesterday

    Profile
    Rank: Master
  21. Run5k

    4,196

    0 points yesterday

    Profile
    Rank: Genius
  22. DTHConsulting

    4,186

    0 points yesterday

    Profile
    Rank: Guru
  23. serialband

    4,000

    0 points yesterday

    Profile
    Rank: Master
  24. Anuroopsundd

    4,000

    0 points yesterday

    Profile
    Rank: Sage
  25. thinkpads_user

    3,750

    0 points yesterday

    Profile
    Rank: Genius

Hall Of Fame