here is the code
@ echo off
Move /y C:\Program Files\2BrightSparks\SyncBack\*.html C:\delete
del /Q c:\delete\*.*
can anyone tell me what wrong with it? i keep getting wrong syntax and all the search in google show me that my syntax is correct. please help.
That's the reason the syntax is wrong. You'll need to fix that.
Bob
its been a while, i still havn;t found the solution to replace the space in the Program Files. I use Program%20Files it don;t works. so can you suggest a solution for me, please?
Such as...
copy "Program Files\*" overthere
Bob
I try the syntax below
@ echo off
Move /y ''C:\Program%20Files\2BrightSparks\SyncBack\*.html'' C:\delete
del /Q c:\delete\*.*
pause
and i get the error
The system cannot find the path specified.
Could Not Find c:\delete\*.*
Press any key to continue . . .
PS: C:\delete\*.* is not giving any problem, its the move which is giving us problem
Your code should look like this:
@ echo off
Move /y ''C:\Program Files\2BrightSparks\SyncBack\*.html'' C:\delete
del /Q c:\delete\*.*
NOT:
@ echo off
Move /y ''C:\Program%20Files\2BrightSparks\SyncBack\*.html'' C:\delete
del /Q c:\delete\*.*
Because you don't have a directory with the name C:\Program%20Files - unless you really have one.
Swisse
at the command line,
del "C:\Program Files\2BrightSparks\SyncBack\*.html"
Write it this way:
@ echo off
Move /y C:\Program Files\2BrightSparks\SyncBack\*.html C:\delete
del /Q c:\delete
Swisse
Sorry, the original del code was correct. I agree with Bob. There should be quotation marks around C:\Program Files\2BrightSparks\SyncBack\*.html. So the code should read:
@ echo off
Move /y "C:\Program Files\2BrightSparks\SyncBack\*.html" C:\delete
del /Q c:\delete\*.*
Swisse
| Forum legend: | |
| Locked thread | |
| Moderator | |
![]() |
CNET staff |
![]() |
Samsung staff |
| Norton Authorized Support team | |
| AVG staff | |
| Windows Outreach team | |
![]() |
Dell staff |
| Intel staff | |