0

I need to run a python program and then move a file into a directory created by said program, only problem is once I run the python program it immediately ends the .BAT script.
this is the BAT file:

@ECHO off  
scrapy startproject work   
move script.py work\work\spiders  
cd work  
scrapy crawl script  
pause
lewisjb
  • 668
  • 9
  • 26

2 Answers2

1

scrapy would seem to be a batch file so use call before it.

call scrapy param1
foxidrive
  • 39,095
  • 8
  • 48
  • 68
0

You can try this:

@echo off
start /W notepad
echo 1. Back from notepad  
start /W wordpad
echo 2. Back from wordpad
start /W notepad
echo 3. Back from notepad. Script done

Got it from here.

Community
  • 1
  • 1
Stefan Falk
  • 21,778
  • 41
  • 170
  • 332