• Delete x days of files Windows Server 2003 SP2

    I am trying to use ForFiles to delete files in a folder that contains files older than 30 days. I am using Windows 2003 server. This is what I'm getting on the DOS screen:C:temp>Windows 2003 u Forfiles 'Windows' is not recognized as an internal or external command, operable program or batch...

    Kwt712555 pointsBadges:
  • Batch file with keyboard commands

    I am trying to create a batch file that utilizes keyboard commands for a Macro on my computer, but I cannot figure out how. Any ideas would be appreciated. The command I am trying to run is alt+S.

    Jab81815 pointsBadges:
  • Delete x days files and folders

    I need help with a batch script that will delete 30 days old files from a folder automatically. I have read about forfiles and I am doing something wrong. I don't know where the file goes when I click on forfiles.exe. Anyways, if someone can help me with this, I would greatly appreciated it. Also,...

    Kwt712555 pointsBadges:
  • Batch file for remote shutdown of Windows Server 2003

    Hi, I want to make a batch file and remotely shutdown a Windows 2003 Server. Is it possible?

    ninjas180 pointsBadges:
  • Add to Favorites in Internet Explorer with batch file

    I want to add an URL link to Internet Explorer by using batch commands in a batch file. For example, I want to add following link, ITKnowledgeExchange, using batch commands. Thanks!

    Shkimran5 pointsBadges:
  • Automating a Remote desktop connection

    I have written a batch file that part of its function is to initiate a remote desktop connection with another computer on the network. When the batch file gets to the remote connection command, the remote connect window appears and I have to press the "connect" button for the process to continue....

    Flame14,925 pointsBadges:
  • How to see the records of a PF which are updated in batch job

    In a batch job, a PF will be created in QTEMP library, and the values are inserted into that PF by an RPGLE program. My doubt is...is there any way to see the contents of that file while the batch job is running?

    dinuas400510 pointsBadges:
  • Batch file to create users and groups

    How do I create a set of scripts that can use any text file to create new groups and users and assign the users to the correct groups? Full names and user names must be set for the users. Also, where could I find a good reference site for commands that I may use to create batch files of my own? I'm...

    EricGagne40 pointsBadges:
  • Send email w/attachment from Command Prompt via batch file

    Most users at my organization have all of the utilities to keep their computer running smoothly, but fail to use them on a regular basis if ever. I have written a few batch files which execute all of these programs, clean this, clean that, defragment, and so on and so forth. Each time the file...

    Schmidtw11,330 pointsBadges:
  • Running a VBScript from a batch file

    Hi, I have a VB script that I want ran from a batch file. How do I go about this? See the VBscript below:Dim oFS : Set oFS = CreateObject( "Scripting.FileSystemObject" ) Dim sSrcDir : sSrcDir = "//serverNameFBSurvey" ' Source directory (remote server) Dim sDstDir : sDstDir = "c:SampleDir" & ""...

    Waizkode5 pointsBadges:
  • Create a batch file to connect to a network drive

    How do I transfer a file to a shared network drive through a batch file?

    Ylew5 pointsBadges:
  • How do you write a batch file to wake up on LAN and remove and replace file

    I am setting up a local network to update 20 computers with a file every week. I need help to write a batch file to wake up on LAN and remove and replace the old file (I can put the file any where on c:\ drive) with the new one. I ordered and received a network ready cart that holds all 20 laptops...

    Indybrass5 pointsBadges:
  • DTF to Excel in Batch file

    I have a Batch file (run from icon on desktop) that is running an IBM DTF to and Excel spreadsheet (file type: ASCII TEXT, translate data: ASCII) and then I use start excel.exe and it opens my spreadsheet with the data. PROBLEM: How can I format the spreadsheet with headers and column fonts and...

    Slmutone10 pointsBadges:
  • How to extract a single word in a text file using a batch command.

    I am trying to extract a single word from a file using a batch file. Now i know the findstr command will export the entire string, but i am just look to export a specific word from that string. I have been search for the past 2 days with no luck. The file contains the following lines and i would...

    JmeloC25 pointsBadges:
  • Log file copy time

    Is it possible to log how long it takes for a file to copy from one location to another? I am using Windows and wanted to output to a text file how long a file transfer took. Can anyone help with this process?

    ConFlicker210 pointsBadges:
  • For Do rename loop

    Would anyone know of a createive way to change the following to represent a "do ren" loop and cleanup some of the un-needed syntax? for /f "tokens=1-9 delims=/ " %%d in ("%date%") do ren "A B C *.xlsx" "A B C %%e %%f %%g.xlsx" for /f "tokens=1-9 delims=/ " %%d in ("%date%") do ren "D E F *.xlsx" "D...

    ConFlicker210 pointsBadges:
  • Delete contents of a folder tree with a kill statement

    Would anyone know of a code, or be able to point me to one, that will delete all files and folders under a given location.  I am looking to schedule the empting of temp folders and would like it to be all inclusive.  If a kill statement is needed also to force delete folders and there content...

    ConFlicker210 pointsBadges:
  • Generating Windows events from the event log

    Can I generate windows events that appear in the event log from scripts or batch files. For example from an Windows XP system call scripts that ping remote servers and on failure generate a event.

    ITKE376,285 pointsBadges:
  • How to change compatibility options for an exe file in a batch file on Windows 7?

    Is there a way to change the compatibility options on an executable file in a batch file? I'd like to be able to set it to run as "xp sp2" or run as administrator. Is there a way to do that?

    Ingram871,285 pointsBadges:
  • Filename from SQL 2005 Query

    I have a batch file that runs a SQL query command overnight once a week and outputs the results of that query to a file as a .csv file. The query produces, amongst other things, a week ending date. Is it possible to to name the output file with result of the week ending column in the query. All...

    Apbarker5 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.