User User name Password  
   
Friday 8.8.2025 / 07:32
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > software, operating systems and more > windows - general discussion > batch script question
Show topics
 
Forums
Forums
Batch Script question
  Jump to:
 
Posted Message
Intense06
Newbie
_
9. January 2007 @ 03:29 _ Link to this message    Send private message to this user   
I have created a batch script to move files from one folder to another. For some reason, when I issue the commands in a live DOS session, they work, but when I issue the same commands through a batch script, it doesn't work. In the DOS session, I also changed the drives to the local drives, C: and D:. I'm not sure if my syntax is wrong, or if it doesn't like mapped network drives. Below is what my script looks like. Any help would be appreciated. Thanks!!

@echo on&setlocal ENABLEDELAYEDEXPANSION
:echo %*|fs /c:"Database backed up:"||exit 1
cd\
for %%B in (X:\ABC\*.BAK) do (move %%B Y:\USA Backup)
afterdawn.com > forums > software, operating systems and more > windows - general discussion > batch script question
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2025 by AfterDawn Ltd.

  IDG TechNetwork