Question about Computers & Internet

1 Answer

Rename a file by providing input and out file name

How to rename a file? using DOS script; script ask for input file name and output file name

Posted by on

  • Misterixas May 11, 2010

    Is this what you mean?:

    C:\ >ren filename1.txt filename2.txt

×

Ad

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Corporal:

    An expert that hasĀ over 10 points.

    Mayor:

    An expert whose answer gotĀ voted for 2 times.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 13 Answers

Ren current.name new.name

this would rename a file called current.name to the name new.name

Posted on Jan 27, 2009

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
A 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
The service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Good luck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

2 Answers

Meaning


The most important program that runs on a computer. Every general-purpose computer must have an operating system to run other programs. Operating systems perform basic tasks, such as recognizing input from the keyboard, sending output to the display screen, keeping track of files and directories on the disk, and controlling peripheral devices such as disk drives and printers. For large systems, the operating system has even greater responsibilities and powers. It is like a traffic cop -- it makes sure that different programs and users running at the same time do not interfere with each other. The operating system is also responsible for security, ensuring that unauthorized users do not access the system.
Operating systems can be classified as follows:
  • multi-user : Allows two or more users to run programs at the same time. Some operating systems permit hundreds or even thousands of concurrent users.
  • multiprocessing : Supports running a program on more than one CPU.
  • multitasking : Allows more than one program to run concurrently.
  • multithreading : Allows different parts of a single program to run concurrently.
  • real time: Responds to input instantly. General-purpose operating systems, such as DOS and UNIX, are not real-time.
  • Operating systems provide a software platform on top of which other programs, called application programs, can run. The application programs must be written to run on top of a particular operating system. Your choice of operating system, therefore, determines to a great extent the applications you can run. For PCs, the most popular operating systems are DOS, OS/2, and Windows, but others are available, such as Linux.
    As a user, you normally interact with the operating system through a set of commands. For example, the DOS operating system contains commands such as COPY and RENAME for copying files and changing the names of files, respectively. The commands are accepted and executed by a part of the operating system called the command processor or command line interpreter. Graphical user interfaces allow you to enter commands by pointing and clicking at objects that appear on the screen.

    Apr 08, 2011 | Computers & Internet

    3 Answers

    How to make folder in dos command how to rename the folder in dos command how to change the font color of the dos command


    To make a folder type: mkdir FOLDER_NAME Where FOLDER_NAME is the name that you want to give your folder.

    To rename a folder type: rename FOLDER_OLDNAME FOLDER_NEWNAME Where FOLDER_OLDNAME is the old name of the folder and FOLDER_NEWNAME is the new name of the folder.
    To change your font colour, use the color command by typing: color XY Where X is a hex value representing the colour of the background of your window and Y is the colour of your.
    The values that you can use for X and Y are:
    0-black
    1-blue
    2-green
    3-aqua
    4-red
    5-purple
    6-yellow
    7-white
    8-grey
    9-light blue
    a-light green
    blight aqua
    c-light red
    d-light purple
    e-light yellow
    f-bright white

    Mar 25, 2011 | Computers & Internet

    1 Answer

    The BIOS has been corrupted. Machine will not boot. Message says Bad Checksum. The only way to rewrite the Bios would appear to be using the Award Bios flash utility. Problem is this demands a DOS file...


    call tech support for the asus mb.. explain that the bios is corrupted..

    or just turn off the power .. at the wall outlet

    and jumper the board to reset the factory defaults for the bios

    ...

    if this fails.. then asus may be able to provide a dos .bin file

    renaming the windows file.. will not work!

    it is program all contained in a single file and must have windows operational to execute

    so... i hate when they write bios update software to operate under windows only



    you can ship the board to asus for the bios to be flashed as the last resort

    Jan 21, 2011 | ASUS A7S8X-MX Motherboard

    2 Answers

    Rename a folder in c drive using java code


    import java.io.*;

    public class RenameFileOrDir{

    public static void main(String[] args) throws IOException{
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    System.out.print("Please enter the file or directory
    name which has to be Renamed : ");

    String old_name = in.readLine();
    File oldfile = new File(old_name);


    if(!oldfile.exists())
    {

    System.out.println("File or directory does not exist.");

    System.exit(0);

    }

    System.out.print("please enter the new file or directory name : ");

    String new_name = in.readLine();

    File newfile = new File(new_name);

    System.out.println("Old File or directory name : "+ oldfile);
    System.out.println("New File or directory name : "+ newfile);
    boolean Rename = oldfile.renameTo(newfile);

    if(!Rename)
    {

    System.out.println("File or directory does not rename successfully.");

    System.exit(0);

    }

    else {

    System.out.println("File or directory rename is successfully.");

    }

    }

    }

    Mar 30, 2009 | Sun Java Programming Language (cdj-275)

    1 Answer

    I want to change start button name


    Hi,
     
    Renaming the Start button needs a few steps (Source: http://www.onecomputerguy.com/windowsxp_tips.htm)


    Renaming the Start Button
    To rename the start button, you will need a hex editor.
    My preference is UltraEdit

    1. Copy the \windows\explore.exe file to a new name (e.g. explorer_1.exe)
    2. With the hex editor, open that file and go to offset 412b6
    3. You will see the word start with blanks between each letter
    4. Edit it be any 5 characters or less
    5. Save the file
    6. Boot to DOS
    7. Copy the existing c:\windows\explorer.exe to explorer.org
    8. Copy explorer_1.exe to explorer.exe
    9. You will also need to replace the explorer.exe in the c:\windows\system32\dllcache file as well with the new one.
    Note: If the partition is NTFS and you can't access the files from DOS:
    1. Start Regedit
    2. Go to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Winlogon.
    3. Change the value of Shell from Explorer.exe to explorer_1.exe
     
    Hope this helps. Please rate your feedback!
    Thanks,
    VJ

    Mar 03, 2009 | Microsoft Windows Xp Home Edition English...

    2 Answers

    To run a DOS command without showing output to the user


    You cannot execute a dos window withou atleast having it appear in the task bar as a running program in Windows. You can however start it minimized using a batch file and starting with the command:

    START /MINIMIZED /WAIT COMMAND.COM

    Depending on what you are trying to do you might want to look into VB scripting or WHS as an alternative to using CMD to parse commands.

    Dec 16, 2008 | Microsoft Visual Basic 6.0 for PC

    1 Answer

    Tascam 788


    The 788 can be used to play music from a SCSI attached CD-RW drive, but the record (and all other mixing functions) are disabled so you are not able to record the CD output onto a track using the SCSI attached drive.

    Your options are:

    1.) Rip tracks files from the CD onto you PC as wav files. You'll have rip (or later convert) those files to mono 16 or 24 bit wav files at 44.1kHz, use the old dos 8.3 naming convention for the filenames, and them burn them onto a CD-R or CD-RW as data files which can then be taken and imported into the 788.

    2.) Play the CD through with an external CD player or stereo and route the output into an input on the 788. Assign the input to a track and record. Be careful to use a line level output, like an aux out (or try the CD player's outputs directly into the 788) if you are using a stereo. Avoid using a speaker output as the signal from a speaker output will be too strong and can damage the 788.

    Hope this helps.

    Cheers.

    bd.

    Oct 20, 2008 | Tascam 2488 Portastudio Multitrack...

    2 Answers

    Screen saver


    Most likely the demo script in the \script directory of your TT is named "salesdemo.script". A script by this name is run automatically after a certain time. Just rename it to "demo.script". Problem solved.

    Jun 06, 2008 | Tomtom ONE 3rd Edition GPS

    1 Answer

    How do i reboot windows vista. i knwo theres a way to do it not from the CD and it returns it to how u go it out of the box. please let me know thanks


    If you are using MS-DOS 6.0 or later, you can use multiple configuration menus or the CHOICE.COM program to configure your system. For more information on using these options under MS-DOS 6.0 or later, type HELP MULTI-CONFIG or HELP CHOICE at the MS-DOS command prompt and then press ENTER. To create the files to automatically restart your computer with the appropriate configuration, do the following:

    Create a directory on your hard drive called C:\CONFIGS. Create the CONFIG.SYS and AUTOEXEC.BAT files you need to boot your system for HIMEM.SYS and applications that require it, with the following names: c:\configs\config.dos c:\configs\autoexec.dos Create the CONFIG.SYS and AUTOEXEC.BAT files you need to start your system for the program that conflicts with HIMEM.SYS. Any unique file extension can be used. The following example uses 386: c:\configs\config.386 c:\configs\autoexec.386 The following DEBUG script can be used to create a small executable file called REBOOT.COM. This file, when executed, will cause your system to restart. To create the file, change to the DOS directory, and type the following: debug reboot.comEnter the following information, pressing ENTER key after each line: A 100 ; Debug instruction for assemble MOV AH,0D ; Disk Reset INT 21h ; causes SmartDrv 4.x to write cache MOV AX, 40 ; set up segment addressing MOV DS,AX DS: OR BYTE PTR [17],0C ; equivalent of pressing CTRL+ALT MOV AX,4F53 ; Issue a "DEL" (53h = DEL scan code) INT 15h ; EMM386 sees this & shuts down. DS: MOV WORD PTR [72],1234 ; Set REBOOT flag to Warm-Boot (0=cold) JMP F000:FFF0 ; Execute the internal restart routine <CR> ; This line must be blank (just hit ENTER) R CX 20 ; File size to be written to disk (in hex) N REBOOT.COM ; Filename W ; Write the file to disk Q ; Quit Debug NOTE: The REBOOT.COM file created with this debug script is compatible with SMARTDrive and its write-behind cache feature. The instructions in REBOOT.COM cause SMARTDrive to write (flush) its write-behind cache to disk before the computer is rebooted.

    The following commands can be used to copy and rename the configuration files to the root directory of the C drive and restart the computer. To simplify the process, you can put these commands into batch files.

    To start your machine for Windows, use the following commands: copy c:\configs\autoexec.dos c:\autoexec.bat copy c:\configs\config.dos c:\config.sys reboot.com To start your machine for the 386 application, use the following commands: copy c:\configs\autoexec.386 c:\autoexec.bat copy c:\configs\config.386 c:\config.sys reboot.com

    Apr 29, 2008 | Computers & Internet

    Not finding what you are looking for?
    Computers & Internet Logo

    Related Topics:

    228 people viewed this question

    Ask a Question

    Usually answered in minutes!

    Top Computers & Internet Experts

    Les Dickinson
    Les Dickinson

    Level 3 Expert

    18424 Answers

    Doctor PC
    Doctor PC

    Level 3 Expert

    7733 Answers

    David Payne
    David Payne

    Level 3 Expert

    14162 Answers

    Are you a Computer and Internet Expert? Answer questions, earn points and help others

    Answer questions

    Manuals & User Guides

    Loading...