Re: Make an automatic task?



Try this from a command prompt first:

copy C:\Documents and Settings\cpc\My Documents\notecard.jpg C:\Documents
and Settings\cpc\Desktop

If that doesn't work and results in an error message, try adding quotes as
follows:
copy "C:\Documents and Settings\cpc\My Documents\notecard.jpg"
"C:\Documents and Settings\cpc\Desktop"

If you still get an error message, the folks over at
alt.msdos.batch.nt
would be happy to help; lots of experts on that group.

If it works, you're all set; make your batch fie.

HTH
Pop`





Stoke wrote:
Earl Grey -

I wrote the batch file - named the icon do it.bat

I wrote it in notepad, and this is what it contains:

copy C:\Documents and Settings\cpc\My Documents\notecard.jpg
paste C:\Documents and Settings\cpc\Desktop

I thought that after clicking on the icon, I should have notecard.jpg
on my desktop, but it's not there...

What's missing??

"Earl Grey" wrote:

Hi Stoke:

You'd do that in the same way you would have in the "old DOS days":
Write a batch file. Depending on exactly what you want to accomplish,
you might use the del and copy commands.

Earl Grey

Stoke wrote:
I know exactly what I want to do from the old DOS days - trying to
figure out how to do it in Windows format.

Basically I want an icon on my desktop that will when clicked -
1 . erase a file from a specific location
2. copy a file from a specified folder
3. paste it to another folder

Seems so simple, but I don't know how to do it in Windows! Can
someone help me? THanks!



.



Relevant Pages

  • Re: Copying files using process class in ASP.NET
    ... If the problem is permissions, ... displaying an error message in the output stream. ... The batch file is using robocopy to copy over the files. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Copy shortcut to desktop in a batch file
    ... Thank you very much for your prompt response and suggestions. ... Furthermore, to make your batch file robust, add the full path ... The error message said "file not found". ... the shortcut was not copied to the desktop. ...
    (microsoft.public.windowsxp.general)
  • Re: Copy shortcut to desktop in a batch file
    ... The date and time was 7/21/2008 11:40 AM, and on a whim, Pegasus pounded out on the keyboard: ... Furthermore, to make your batch file robust, add the full path ... I interpret that the batch file cannot find "XXX.lnk" file even though the shortcut "XXX.lnk" does exist. ... I got the error message "File not found" for the shortcut command. ...
    (microsoft.public.windowsxp.general)
  • Re: OT - Computer access
    ... > While playing poker I notice this little blue and white 'executable' icon ... > Should I buy a firewall instead or is Microsoft's controls adequate? ... Create a little batch file on your desktop that runs PSList ...
    (rec.gambling.poker)
  • basic problems with ocamlopt compiler
    ... doesn't work on ocamlopt. ... Here's the error message I get: ... 'ml' is not recognized as an internal or external command, ... program or batch file. ...
    (comp.lang.ml)