Question about Microsoft Windows XP Home Edition

1 Answer

I'm Making a batch File that moves and copy files, not working.

I'm Making a batch File that moves and copy files this is what it looks like @Echo Off
:start
set /p 1=Please Enter Directory and Name of file you would like to move
set /p 2=Please Enter Directory of where the file will go
set /p 3=please select 1 of 2 options 1: copy 2: move
if %3%==move goto a
if %3%==copy goto b
:A
move %1% %2%

:B
copy %1% %2%

Posted by on

Ad

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that gotĀ 5 achievements.

    Governor:

    An expert whose answer gotĀ voted for 20 times.

    Hot-Shot:

    An expert who has answered 20 questions.

  • Expert
  • 99 Answers

@Echo Off
:start
set /p 1=Please Enter Directory and Name of file you would like to move
set /p 2=Please Enter Directory of where the file will go
set /p 3=please select 1 of 2
options 1: copy 2: move
if %3%==move goto a
if %3%==copy goto b
:A move %1% %2%
goto c
:B copy %1% %2%
:C echo end

Posted on Apr 26, 2010

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.
Goodluck!

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

How to Create a Batch File?


Use "notepad" to type in the commands you want in the batch. Save the file with the extension, "cmd" as in, "batch.cmd". You have a batch file now. It's just commands in a file.

Oct 18, 2016 | Computers & Internet

Tip

How to create a batch file on windows xp.


To create a batch file that would be very helpful I suggest downloading notepad++ it's made for programming.First off open up notepad++ and go to
languages and click on batch then type in "@echo off" at the beginning of every batch file you need to type that in.Next type in:
______________________________________________________________

@echo off
echo.
echo What would you like to do today?
echo.
echo 1)Notepad
echo 2)Paint
echo 3)Calculator
echo.

set /p web=Type in Option:
if "%web%"=="1" ("%SystemRoot%\system32\notepad.exe") else (exit)
if "%web%"=="2" ("%SystemRoot%\system32\mspaint.exe") else (exit)
if "%web%"=="3" ("%SystemRoot%\system32\calc.exe") else (exit)

______________________________________________________________

You just created a batch file menu now save this file to the desktop as
"Menu.bat".Now that you have the file saved download this free batch file compiler called "battoexe" so nobody can edit or destroy you batch files.
That's it you have made your first batch file visit my website at www.wix.com/Firestorm002/Batch101.

on Jul 18, 2010 | Computers & Internet

Tip

Create a password protected folder without any special software


In an earlier post I had written about how to create an invisible folder. That’s a method to create a merely invisible folder with no real protection.
Now, here we will see how to create a folder that will not just be invisible, but also require a password to reveal it and open it. The best part is that you don’t need any special software to do this. Just plain old Notepad is all that you need.
Here is the code that you need:
cls
@ECHO OFF
title Folder Personal
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Personal goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Personal “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p “pass=>”
if NOT %pass%==pwd123 HERE goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Personal
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Personal
echo Personal created successfully
goto End
:End
Now here is what you need to do:
Just copy the above code and paste it into Notepad. Save it by giving it any name you choose. Assuming, the file is called secret.txt, change the extension to ‘.bat‘ so that the new name becomes secret.bat. What you get is a batch file. You could actually save one step by saving the file in Notepad directly as secret.bat by enclosing the file name like this: “secret.bat” . This batch file is the one that you need. You can edit this batch file to change the folder name and the password. To change the name of the folder that is created, change the ‘Personal’ (in bold in the above code) to any another name you choose. Likewise change the ‘pwd123′ (in red in the code) to anything else.
Now let’s see how to use it. Place the file in the location where you would like to create your protected folder. Run the batch file by double clicking on it. This will create a folder named Personal in the same location as the batch file. You can now open this folder and place any files in it. Once you are finished, run the batch file again. You will be asked whether you want to lock the folder. Entry ‘Y’ (for Yes) and hit Enter. The folder becomes invisible. To retrieve the folder, run the batch file again. You will be prompted to enter the password. Enter the password, hit enter and voila! the folder appears.
Important: The batch file acts like a key to open the locked folder. So once you have created and locked a folder, do not keep the batch file in the same location since anybody can open the batch file and view your password. So I would suggest that you keep the batch file in a separate and safe place or better still keep it on your pen drive or flash drive. That way when you want to open the folder just copy the batch file to the location where you have your protected folder and run it.
Do remember that the above method is not intended to act as a substitute for the numerous free and commercial softwares that are specifically designed to provide security and encryption to your data.
Update: I got comments saying the code does not work. Of course I did check it before posting it here. But I have identified the problem. The problem is with the straight double quotes used in the code in this post. Once you copy the code you would also need to change each of the double quotes with your keyboard double quotes. That might seem a lot of work for some. So I thought it would be easier to give away the batch file itself. You can download the file here. (Use right-click and ‘Save Target as’ or ‘Save Link as’).

on Mar 20, 2008 | HP Pavilion a1410n (ER890AA) PC Desktop

1 Answer

I had Printmaster 8 and used it a lot - I have now purchased a new pc with Windows 7 and the 8 won't load onto it. I have downloaded 12 but I cannot use the gallery or art or the old art cds which is...


Hi Vivienne.
I have not used PM for many years (DOS 6 & Win 3.1 days), so i'll just make an educated guess what the cause could be:

Your newer version, Printmaster 12, may use a different file-extension, in other words, image file format, to the original PM8.

Explorer may show the extension if set up for this otherwise use the DOS method via a Notepad-written batch-file, PMext_CD.cmd.

Flash drive, aka Pendrive should be in your USB.
This saves the hassle of remembering your default documents path.
Of course, if you have a second HDD for storage, use it for the output result file.

Let's assume flash is drive F: and CD is drive D:
Open Notepad, presuming your OS is WIN xx.

@echo off
D:
CD\
cls
echo.
echo SEARCHING.....
Echo CD_DRIVE D FILES>>f:\pmfiles_all.txt
dir/a/s/b>>f:\pmfiles_all.txt
cls
color 4E
echo.
echo CD SEARCH DONE !!
pause
exit

save "all files" as PMext_CD.cmd

You can do the same for your PM12 HDD folder.
Batch-file name = PMext_HDD.cmd

Note: the PM pictures may be stored in a zipped or encrypted database, which will render the batch-file useless.

Failing that, try found out who makes PM from the CD sleeve, email them directly.

Hope this helps you.
Clive.

Oct 13, 2017 | Broderbund Printmaster Silver 12.0

3 Answers

How to create simple batch files


Creating a batch file
MS-DOS users
Microsoft Windows and other users

MS-DOS users
To create a basic batch file in MS-DOS, follow the below steps that give you an example of how to create a basic batch file.

  1. Open an MS-DOS command window or get to MS-DOS. Additional information about doing this can be found on document CHDOS.
  2. At the MS-DOS prompt, type: edit test.bat and press enter.
  3. If typed properly, you should now be in a blue screen. Within the screen, type:

    pause
    dir c:\windows
    dir c:\windows\system

  4. Once the above three lines have been typed in, click File and choose exit; when prompted to save, click "Yes." Users who do not have a mouse cursor can accomplish this same task by pressing ALT+F to access the file menu, then pressing "X" to exit, and pressing enter to save changes.
  5. Once you are back at the MS-DOS prompt, type: test and press enter. This will execute the test.bat file and begin running the file. Because the first line is pause, you will first be prompted to press a key. Once you press a key the batch file will run line-by-line; in this case, listing the files in the windows and windows\system directories.
If you wish to add more lines to this batch file you would simply type "edit test.bat" to edit the file again.
Additional information about the MS-DOS edit command can be found on our edit command page. Some versions of MS-DOS and bootable diskettes may not have the edit command; if this is the case, you would either need to obtain the edit.com file to access this file or use the copy con command.




Microsoft Windows and other users
A Windows user can still use the above MS-DOS steps if they wish to create a batch file. If, however, you're more comfortable using Microsoft Windows or your operating system, you can use any text editor, such as Notepad or Wordpad, to create your batch files, as long as the file extension ends with .bat. In the below example we use the Windows notepad to create a batch file.
  1. Click Start
  2. Click Run
  3. Type: notepad and press enter.
  4. Once notepad is open, type the below lines in the file or copy and paste the below lines into notepad.

    @echo off
    echo Hello this is a test batch file
    pause
    dir c:\windows

  5. Click File and click Save; browse to where you want to save the file. For the file name, type "test.bat", and if your version of Windows has a "Save as type" option, choose "All files", otherwise it will save as a text file. Once all of this has been done click the Save button and exit notepad.
  6. Now, to run the batch file, simply double-click or run the file like any other program. Once the batch file has completed running it will close the window automatically.

Jan 04, 2011 | Computers & Internet

1 Answer

What is the mean auto exe c bat in dos files??


An AUTOEXEC.BAT file contains MS-DOS commands which are executed automatically when a Personal Computer boots. This file is usually located in the root directory of the hard drive or floppy from which the computer boots (or starts) up. The AUTOEXEC.BAT file is used to set various default settings and to run programs that should be executed upon startup. Below you will find a list of executable statements (commands) that typically go into an AUTOEXEC.BAT file, along with explanations their.


The AUTOEXEC.BAT file is one form of a batch file, and it is used to automate functions in MS-DOS. In their simplest form, batch files contain MS-DOS commands (batch file language) which includes commands for such things as loops and execution branches and the like.
ECHO
Example: @ECHO OFF
This optional command will suppress the display of subsequent commands while the AUTOEXEC.BAT file is being executed

Dec 09, 2010 | Computers & Internet

2 Answers

Copying to c:\ in vista using batch files..


You need to left click the batch file and "Run as Administrator".

Nov 01, 2009 | Microsoft Windows Vista Ultimate Edition

1 Answer

I have downloaded a folder to the usb drive and now i have added more files ( pictures ) to the folder. how do i now download the new files o the usb drive without adding the pictures that are already...


open a command window at the source folder
try a DOS command like this,
long line may wrap
replace the [usb*] with the spec for your system,, filespec can be anything, *.jpg *.raw that your camera requires

for %f in (*.*) do if not exist [usbdrive]:\[usbfolder]\%f copy %f [usbdrive]:\[usbfolder]

or you can make a batch file to do the same thing as this is likely to be a repeated task

@echo off
cls
echo Copying New Files
for %%f in (*.*) do if not exist [usbdrive]:\[usbfolder]\%%f copy %%f [usbdrive]:\[usbfolder]
echo New files Copied

Nov 02, 2008 | Computers & Internet

1 Answer

How to use cmd ?


to use the command prompt, press the "start" and "R" keys on the keyboard.
On the small, "Run" screen, type cmd.
click ok.

type help in the command prompt. This should print a list of commands that you can use with it.
This is what it puts on-screen:
For more information on a specific command, type HELP command-name
ASSOC Displays or modifies file extension associations.
AT Schedules commands and programs to run on a computer.
ATTRIB Displays or changes file attributes.
BREAK Sets or clears extended CTRL+C checking.
CACLS Displays or modifies access control lists (ACLs) of files.
CALL Calls one batch program from another.
CD Displays the name of or changes the current directory.
CHCP Displays or sets the active code page number.
CHDIR Displays the name of or changes the current directory.
CHKDSK Checks a disk and displays a status report.
CHKNTFS Displays or modifies the checking of disk at boot time.
CLS Clears the screen.
CMD Starts a new instance of the Windows command interpreter.
COLOR Sets the default console foreground and background colors.
COMP Compares the contents of two files or sets of files.
COMPACT Displays or alters the compression of files on NTFS partitions.
CONVERT Converts FAT volumes to NTFS. You cannot convert the
current drive.
COPY Copies one or more files to another location.
DATE Displays or sets the date.
DEL Deletes one or more files.
DIR Displays a list of files and subdirectories in a directory.
DISKCOMP Compares the contents of two floppy disks.
DISKCOPY Copies the contents of one floppy disk to another.
DOSKEY Edits command lines, recalls Windows commands, and creates macros.
ECHO Displays messages, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE Deletes one or more files.
EXIT Quits the CMD.EXE program (command interpreter).
FC Compares two files or sets of files, and displays the differences
between them.
FIND Searches for a text string in a file or files.
FINDSTR Searches for strings in files.
FOR Runs a specified command for each file in a set of files.
FORMAT Formats a disk for use with Windows.
FTYPE Displays or modifies file types used in file extension associations.
GOTO Directs the Windows command interpreter to a labeled line in a
batch program.
GRAFTABL Enables Windows to display an extended character set in graphics
mode.
HELP Provides Help information for Windows commands.
IF Performs conditional processing in batch programs.
LABEL Creates, changes, or deletes the volume label of a disk.
MD Creates a directory.
MKDIR Creates a directory.
MODE Configures a system device.
MORE Displays output one screen at a time.
MOVE Moves one or more files from one directory to another directory.
PATH Displays or sets a search path for executable files.
PAUSE Suspends processing of a batch file and displays a message.
POPD Restores the previous value of the current directory saved by PUSHD.
PRINT Prints a text file.
PROMPT Changes the Windows command prompt.
PUSHD Saves the current directory then changes it.
RD Removes a directory.
RECOVER Recovers readable information from a bad or defective disk.
REM Records comments (remarks) in batch files or CONFIG.SYS.
REN Renames a file or files.
RENAME Renames a file or files.
REPLACE Replaces files.
RMDIR Removes a directory.
SET Displays, sets, or removes Windows environment variables.
SETLOCAL Begins localization of environment changes in a batch file.
SHIFT Shifts the position of replaceable parameters in batch files.
SORT Sorts input.
START Starts a separate window to run a specified program or command.
SUBST Associates a path with a drive letter.
TIME Displays or sets the system time.
TITLE Sets the window title for a CMD.EXE session.
TREE Graphically displays the directory structure of a drive or path.
TYPE Displays the contents of a text file.
VER Displays the Windows version.
VERIFY Tells Windows whether to verify that your files are written
correctly to a disk.
VOL Displays a disk volume label and serial number.
XCOPY Copies files and directory trees.

this window is used only when the desktop cannot be accessed.
For a user-friendly interface (easier to use), use My computer to do common tasks.

Aug 25, 2008 | Microsoft Windows Vista Home Premium with...

2 Answers

MS-Dos running a file..


Right click on the file and select edit. This should load it in a text editor.
Now, simply read what it does.

You don't say what the batch file is for, so it's hard to say what you should look for in the file.

Jan 31, 2008 | Computers & Internet

Not finding what you are looking for?
Microsoft Windows XP Home Edition Logo

Related Topics:

110 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2885 Answers

Piyal Perera
Piyal Perera

Level 3 Expert

528 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18408 Answers

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

Answer questions

Manuals & User Guides

Loading...