Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6556333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:55:54+00:00 2026-05-25T12:55:54+00:00

I am looking to do some automating on some imports. I am looking for

  • 0

I am looking to do some automating on some imports. I am looking for a way to call multiple scripts to run from either one batch file or vbscript. what I am trying to do is the following: 1) rename a file which is done in batch
2) Move the renamed file to another folder
3) Replace specified text within the file
4) Rename the file with a date extension
I want to be able to schedule 1 batch file to run and handle all of these tasks from that 1 batch file. I have already written vbscripts to replace text, and move the file when done. Here is what I have so far which is done inside batch. Here is what I have so far which may help you understand what I mean.

(inside the batch file)

            cd C:\NEW
            ren A353*.txt A353.txt
   (step 2) cscript move1.vbs (which moves the file)
   (step 3) cscript TextReplace.vbs (which replaces a string of text in the A353.txt)
   (step 4) I need a script that will rename A353.txt to the month and date in this format MMDD. EX: A3530823.txt.     
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:55:55+00:00Added an answer on May 25, 2026 at 12:55 pm

    Instead of mixing batch and VBScript, I recommend you just put all those tasks in a single VBScript. Here’s an example of how to rename a file in VBScript.

    Set FSO = CreateObject("Scripting.FileSystemObject")
    FSO.MoveFile "C:\MyFile.txt", "C:\YourFile.txt"
    ' Can continue to use FSO for other operations...
    

    Please note that moving is essentially the same thing as renaming.

    If you clarify what else you want, then more help will be forthcoming.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the process of automating some code, I am looking to call upon a
I'm looking for some Best Practices for automating the deployment of Stored Procedures/Views/Functions/Table changes
Looking for some advice on the best way to implement localization along with client
I'm looking for some options to programmatically create a Word document from within a
Background I am automating some Office application (Word and PowerPoint) via command-line tool. One
I'm fiddling with a bit of c++/opencv. I was looking some of the samples
Looking through some code I came across the following code trTuDocPackTypdBd.update(TrTuDocPackTypeDto.class.cast(packDto)); and I'd like
Looking for some direction here as I'm running into some migration problems. We have
Looking for some help with a Labview data collection program. If I could collect
Looking for some guidance on a WCF service I’m prototyping. I have a WCF

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.