Author Topic: execute functionality  (Read 2895 times)

Offline usenet4life

  • Contributor
  • ***
  • Posts: 3
execute functionality
« on: January 05, 2012, 03:37:55 am »
I have a simple script i want to execute after my extraction completes, to copy to my network drive, the script consists of:

copy %1 Z:\alt.binz

The execute command is

C:\Users\username\altbinz.bat "$u"

However, this script usually shows the command prompt and saying the file can not be found.  It does work, but not in everytime, maybe 20% of the time.  What am I missing?  Should altbinz sleep for a second before executing the script or something?

Offline davidq666

  • Contributor
  • ***
  • Posts: 1302
  • Watashi Wa Ero Desu!
Re: execute functionality
« Reply #1 on: January 05, 2012, 02:00:54 pm »
I am not 100% sure if the problems are identical since for me it work 0% of the time. I used a very simular kind of script to copy the last download from the unrar folder to mobile device. Ever since the unrar folder is located on a network drive the script fails and instead copys the the alt.binz_status.xml and/or the bat to that location. As far as i know the problem lies with batchfiles not being able to handle udp paths correctly.