1.

Solve : Copy file from different folder!?

Answer»
Hello folks i would like to copy a file from a distant folder like C:\Documents and Settings\Administrator, file being any EXE to Desktop.
I would like to run this bat file from desktop itself.

can some make a Bat file for this purpose. I have already made it,but it require me to put this bat in the Administrator folder and assigned d: for the file to be saved. Not important!

Thank u:Nor clear WANT you want.
Some Windows EXE files must be run in their own folders. You can always send it to the Desktop as a Shortcut, but you don't need a batch file to do that.i do not want to cut or move the exe files from their default location: i just want to make a backup of these files, i could just graze the mouse pointer to the files to achieve this , but i want only selective files ,and doesn't making a bat file serve this purpose,,,,i would know the file and what i want copied.


If someone has understood my view, could anyone suggest something.

MANY thanks:Not really sure what you are doing, but this will copy all the exe files from the administrator folder to the administrator desktop folder.

Code: [Select]echo off
copy "C:\Documents and Settings\Administrator\*.exe" "C:\Documents and Settings\Administrator\Desktop

Save the batch script anywhere on your system, then create a shortcut on the desktop that points back to where you saved the script.

Good luck.  That bat worked, i just wanted to copy one exe file: will be using this method to other folders as WELL. Its me, and my way of doing things, it saves me a lot of time.
   I would like to ask few questions:
 
  • You used double " "for the source folder ( at the beginning and at the end ), but single " for the destination: Is their some meaning behind this.
  • Can you help me renameing the *.exe to test.exe that is in Desktop.
Its what i frequently do when i am downloading some stuffs from the net.

Thank you for your suggestion.
Quote
You used double " "for the source folder ( at the beginning and at the end ), but single " for the destination: Is their some meaning behind this.

You're being too kind. There is no sinister meaning, simply a typo on my part. I'm surprised it worked.

Quote
i just wanted to copy one exe file: will be using this method to other folders as well

Can you help me renameing the *.exe to test.exe that is in Desktop.

Code: [Select]echo off
copy "C:\Documents and Settings\Administrator\oldfilename" "C:\Documents and Settings\Administrator\Desktop\newfilename"

oldfilename - is the filename in the administrator folder (filename.exe).
newfilename - is the filename in the desktop folder (test.exe).  The rename of the file will occur during the copy operation.

You can add as many copy statements as you need to the batch file. Be careful not to duplicate any newfilenames.

Good luck. 

The quotes are required because the path names (documents and settings) of both the source and target directories contain embedded spaces.Thanks for replying: even with a typo ,the batch worked.
Code: [Select]echo off
copy "C:\Documents and Settings\Administrator\oldfilename" "C:\Documents and Settings\Administrator\Desktop\newfilename"

The renaming worked too: thank you for your time. Although i had to change something to serve my purpose.  Like moving to desktop, but i am happy...

Thank you:
Would you like a Floppy Disc Robot to help you?


http://www.rogerarrick.com/diskrobot/Would you like a Floppy Disc Robot to help you?

yes
Code: [Select]Would you like a Floppy Disc Robot to help you?
Thanks for the offer, but i really don't need a  MACHINE to insert/remove a Floppy Disk. But i strongly believe their is always a place for new things in the market, Rogerarrick may be an innovator but with all honestly i don't see its use here. imo  1 out of 100 people could use it.
 Sorry I'll pass, Marlyane seems interested.


Discussion

No Comment Found