Synaptics Download Scripts not recognised in Windows anymore :(

Asked by Tom

Hi :)
I am sure that i have previously used synaptic's
File - "Generate download script"
to create a very clever script that worked in Windows, Linux and perhaps possibly Mac too. I distinctly remember placing it on the desktop in Windows and double-clicking to find my bosses desktop suddenly overflowing with packages. Now Windows doesn't recognise new scripts and asks which program. How can i get the script to work properly on Windows?

At the start of the text-file it currently generates is a line reading
#!/bin/sh
Then a list of wget commands which i doubt Windows would understand?

Regards from Tom :)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bob Nobody
Solved:
Last query:
Last reply:
Revision history for this message
marcus aurelius (adbiz) said :
#1

ubuntu uses the bash scripting language
windoze uses it's own batch command language
as for macs, i'm sure it has it's own scripting language, as well, that's unique to unix.

Revision history for this message
Luky Winarto (luckyborneo) said :
#2

Hello Tom,

If you want to use script like Unix on windows, you have to install Cygwin.
http://www.cygwin.com/install.html

Hopefully this program will solve your problem...

Revision history for this message
Tom (tom6) said :
#3

Hi :)
Thanks. That is why i thought synaptic was soo clever previously. The single script would run on any machine!! Now it doesn't, which is no great surprise except that it did used to work.
Good luck and regards from
Tom :)

Revision history for this message
Best Bob Nobody (rambler72) said :
#4

I think I know the answer to this :P

Install wget for windows if you don't have it.
http://gnuwin32.sourceforge.net/packages/wget.htm

remove top line in the list.
"#!/bin/sh"
save list with *.bat extension

double-click list.bat file

Files are downloaded to the folder where the list is.

Revision history for this message
Tom (tom6) said :
#5

Thanks Bob Nobody, that solved my question.

Revision history for this message
Tom (tom6) said :
#6

Hi :)
Thanks Bob :) I htink Luky's answer is good too but Bob's is really easy and Luky already has quite a few karma points ;)
Many thanks and regards from
Tom :)