using WshShell.Run with /add works fine for me. maybe fb.trace your command to see where it's going wrong??
already done, here are the syntax i used and the dump :
fb.trace(fb.FoobarPath+"foobar2000.exe /add "+this.path);
WshShell.Run(fb.FoobarPath+"foobar2000.exe /add "+this.path);
trace result => J:\foobar2000 spotifoo\foobar2000.exe /add Z:\MP3\0\+44\2006 - When Your Heart Stops Beating\01 - +44 - Lycanthrope.mp3
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 7009D2EEh
Access violation, operation: read, address: 00000000h
Call path:
entry=>app_mainloop
Code bytes (7009D2EEh):
7009D2AEh: 5E 8B C3 5B 5D C3 CC CC CC CC CC CC CC CC CC CC
7009D2BEh: CC CC 55 8B EC 83 EC 08 53 56 33 F6 BB 01 00 00
7009D2CEh: 00 89 5D F8 39 75 0C 0F 86 96 00 00 00 57 8B 7D
7009D2DEh: 08 90 8B 45 0C 2B C6 0F 84 85 00 00 00 83 F8 01
7009D2EEh: 0F B7 04 77 75 07 B9 01 00 00 00 EB 53 33 D2 85
7009D2FEh: C0 74 47 8B C8 81 E1 00 FC 00 00 BA 01 00 00 00
7009D30Eh: 81 F9 00 D8 00 00 75 32 0F B7 4C 77 02 8B D9 81
7009D31Eh: E3 00 FC 00 00 81 FB 00 DC 00 00 8B 5D F8 75 1A
Stack (0019D4D4h):
0019D4B4h: 00000000 FFFFFD34 000002E4 FFFFFD34
0019D4C4h: 000002CC 00000019 00000000 0019D4E8
0019D4D4h: 0019D50C 00000000 00000000 00000001
0019D4E4h: 0019D50C 0019D61C 7006BD15 00000000
0019D4F4h: FFFFFFFF 86664004 006A927C 006A8FE8
0019D504h: 006A0000 00140036 00000000 00000000
0019D514h: 00000000 00000000 0000001B 000B0037
0019D524h: 02A58330 00B71EB0 00000094 0019D7E4
0019D534h: 700F7964 03421AB8 0000002E 00000040
0019D544h: 0000002D 00000000 00BBEC50 00000014
0019D554h: 00B60178 00BCB758 00B606B0 00000000
0019D564h: 00000000 00000000 00000000 00000000
0019D574h: 00000000 00000000 80070002 00000000
0019D584h: 86664004 00000040 7732DEC6 00B71ED4
0019D594h: 00000000 00B71EB0 0019D5D0 746F651D
0019D5A4h: 00B71ED4 9EF3A4D3 00B71ED4 00B71EB0
0019D5B4h: 00000000 0019D5A8 00B71ED4 00B71EEC
0019D5C4h: 00B71EEC 00B71ED4 00000001 00BC0888
0019D5D4h: 0019D608 746F651D FFFFFFFF 00000002
0019D5E4h: 00000000 00000048 746E5ACB 0019D610
Registers:
EAX: FFFFFFFF, EBX: 00000001, ECX: 00000019, EDX: 00000018
ESI: 00000000, EDI: 00000000, EBP: 0019D4E8, ESP: 0019D4D4
Crash location:
Module: foo_uie_wsh_panel_mod
Offset: 3D2EEh
Loaded modules:
foobar2000 loaded at 01130000h - 01319000h
ntdll loaded at 77300000h - 77480000h
kernel32 loaded at 76930000h - 76A30000h
KERNELBASE loaded at 76C30000h - 76C76000h
COMCTL32 loaded at 72C00000h - 72D9E000h
msvcrt loaded at 75090000h - 7513C000h
GDI32 loaded at 76E70000h - 76F00000h
USER32 loaded at 76400000h - 76500000h
ADVAPI32 loaded at 76890000h - 76930000h
sechost loaded at 762D0000h - 762E9000h
RPCRT4 loaded at 76010000h - 76100000h
SspiCli loaded at 74E70000h - 74ED0000h
CRYPTBASE loaded at 74E60000h - 74E6C000h
LPK loaded at 74F60000h - 74F6A000h
USP10 loaded at 76230000h - 762CD000h
SHLWAPI loaded at 76D10000h - 76D67000h
DSOUND loaded at 71140000h - 711B2000h
ole32 loaded at 75DC0000h - 75F1C000h
WINMM loaded at 74310000h - 74342000h
POWRPROF loaded at 73B10000h - 73B35000h
SETUPAPI loaded at 765A0000h - 7673D000h
CFGMGR32 loaded at 75D90000h - 75DB7000h
OLEAUT32 loaded at 76C80000h - 76D0F000h
DEVOBJ loaded at 76550000h - 76562000h
UxTheme loaded at 732E0000h - 73360000h
SHELL32 loaded at 75140000h - 75D89000h
zlib1 loaded at 5A4C0000h - 5A4D4000h
shared loaded at 74540000h - 7456B000h
imagehlp loaded at 75FA0000h - 75FCA000h
dbghelp loaded at 73EC0000h - 73FAB000h
COMDLG32 loaded at 762F0000h - 7636B000h
Secur32 loaded at 74530000h - 74538000h
CRYPT32 loaded at 74F70000h - 7508C000h
MSASN1 loaded at 76740000h - 7674C000h
gdiplus loaded at 70F00000h - 71090000h
IMM32 loaded at 75F30000h - 75F90000h
MSCTF loaded at 76160000h - 7622C000h
CLBCatQ loaded at 76370000h - 763F3000h
MMDevApi loaded at 71100000h - 71139000h
PROPSYS loaded at 72100000h - 721F5000h
dwmapi loaded at 732C0000h - 732D3000h
foo_unpack loaded at 74500000h - 7452E000h
foo_uie_vis_channel_spectrum loaded at 10000000h - 1003D000h
MSIMG32 loaded at 72BF0000h - 72BF5000h
foo_albumlist loaded at 744A0000h - 744FD000h
foo_converter loaded at 70290000h - 7030B000h
foo_masstag loaded at 01030000h - 01084000h
foo_input_std loaded at 70130000h - 70285000h
foo_uie_wsh_panel_mod loaded at 70060000h - 70122000h
foo_ui_columns loaded at 03510000h - 0369C000h
foo_runcmd loaded at 70020000h - 70053000h
foo_ui_std loaded at 6E730000h - 6E848000h
foo_utils loaded at 6FFD0000h - 70014000h
foo_cdda loaded at 6E6E0000h - 6E72E000h
foo_uie_elplaylist loaded at 6E660000h - 6E6D3000h
foo_fileops loaded at 6E610000h - 6E657000h
foo_uie_lyrics2 loaded at 03CE0000h - 03DCE000h
WININET loaded at 76D70000h - 76E64000h
Normaliz loaded at 772D0000h - 772D3000h
urlmon loaded at 76750000h - 76885000h
iertutil loaded at 76A30000h - 76C2A000h
foo_uie_esplaylist loaded at 6E5A0000h - 6E607000h
foo_freedb2 loaded at 6E550000h - 6E591000h
foo_uie_albumlist loaded at 029F0000h - 02A33000h
foo_uie_panel_splitter loaded at 02BD0000h - 02C29000h
foo_lyricsgrabber2 loaded at 6E490000h - 6E54C000h
WLDAP32 loaded at 76500000h - 76545000h
python25 loaded at 1E000000h - 1E208000h
MSVCR71 loaded at 7C340000h - 7C396000h
WS2_32 loaded at 75FD0000h - 76005000h
NSI loaded at 75F90000h - 75F96000h
foo_uie_biography loaded at 6E430000h - 6E488000h
foo_dsp_std loaded at 6E3E0000h - 6E428000h
foo_jesus loaded at 74480000h - 7449A000h
foo_covers2 loaded at 6E3B0000h - 6E3D7000h
foo_uie_dragpanel loaded at 02A60000h - 02A85000h
foo_rgscan loaded at 6E360000h - 6E3AD000h
WindowsCodecs loaded at 70BD0000h - 70CCB000h
apphelp loaded at 73530000h - 7357B000h
EhStorShell loaded at 73DD0000h - 73E01000h
GR469A~1 loaded at 661C0000h - 663DD000h
GrooveUtil loaded at 68EF0000h - 68FE1000h
MSVCR80 loaded at 73D30000h - 73DCB000h
GrooveNew loaded at 68FF0000h - 68FF7000h
VERSION loaded at 738B0000h - 738B9000h
ATL80 loaded at 7C630000h - 7C64B000h
CRYPTSP loaded at 737F0000h - 73806000h
rsaenh loaded at 737B0000h - 737EB000h
ntshrui loaded at 73C50000h - 73CBF000h
srvcli loaded at 73590000h - 735A9000h
cscapi loaded at 73EB0000h - 73EBB000h
slc loaded at 73EA0000h - 73EAA000h
SXS loaded at 6E300000h - 6E35F000h
jscript loaded at 746D0000h - 74782000h
RpcRtRemote loaded at 72200000h - 7220E000h
wshom loaded at 6E2D0000h - 6E2F1000h
MPR loaded at 72660000h - 72672000h
ScrRun loaded at 6E2A0000h - 6E2CA000h
_socket loaded at 030F0000h - 030FD000h
explorerframe loaded at 70A60000h - 70BCF000h
DUser loaded at 73B40000h - 73B6F000h
DUI70 loaded at 711C0000h - 71272000h
Stack dump analysis:
Address: 7006BD15h (foo_uie_wsh_panel_mod+BD15h)
Address: 700F7964h (foo_uie_wsh_panel_mod+97964h), symbol: "foobar2000_get_interface" (+59254h)
Address: 7732DEC6h (ntdll+2DEC6h), symbol: "RtlAllocateHeap" (+0h)
Address: 746F651Dh (jscript+2651Dh), symbol: "DllGetClassObject" (+15379h)
Address: 746F651Dh (jscript+2651Dh), symbol: "DllGetClassObject" (+15379h)
Address: 746E5ACBh (jscript+15ACBh), symbol: "DllGetClassObject" (+4927h)
Address: 75099D45h (msvcrt+9D45h), symbol: "malloc" (+57h)
Address: 700ED7A5h (foo_uie_wsh_panel_mod+8D7A5h), symbol: "foobar2000_get_interface" (+4F095h)
Address: 746E0B7Bh (jscript+10B7Bh)
Address: 7006A941h (foo_uie_wsh_panel_mod+A941h)
Address: 746F4D79h (jscript+24D79h), symbol: "DllGetClassObject" (+13BD5h)
Address: 746F4F9Ch (jscript+24F9Ch), symbol: "DllGetClassObject" (+13DF8h)
Address: 746F4F30h (jscript+24F30h), symbol: "DllGetClassObject" (+13D8Ch)
Address: 76236104h (USP10+6104h)
Address: 762753DBh (USP10+453DBh), symbol: "ScriptPositionSingleGlyph" (+15A4Bh)
Address: 75099894h (msvcrt+9894h), symbol: "free" (+0h)
Address: 75099894h (msvcrt+9894h), symbol: "free" (+0h)
Address: 75099894h (msvcrt+9894h), symbol: "free" (+0h)
Address: 746F651Dh (jscript+2651Dh), symbol: "DllGetClassObject" (+15379h)
Address: 75099894h (msvcrt+9894h), symbol: "free" (+0h)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 7471DBBAh (jscript+4DBBAh), symbol: "DllCanUnloadNow" (+25BA0h)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E5D7Dh (jscript+15D7Dh), symbol: "DllGetClassObject" (+4BD9h)
Address: 746E4D73h (jscript+14D73h), symbol: "DllGetClassObject" (+3BCFh)
Address: 746E6302h (jscript+16302h), symbol: "DllGetClassObject" (+515Eh)
Address: 746E5CDBh (jscript+15CDBh), symbol: "DllGetClassObject" (+4B37h)
Address: 746DB6A7h (jscript+B6A7h)
Address: 746DB6CCh (jscript+B6CCh)
Address: 746E5870h (jscript+15870h), symbol: "DllGetClassObject" (+46CCh)
Address: 746EDCFBh (jscript+1DCFBh), symbol: "DllGetClassObject" (+CB57h)
Address: 746E4D76h (jscript+14D76h), symbol: "DllGetClassObject" (+3BD2h)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E4F84h (jscript+14F84h), symbol: "DllGetClassObject" (+3DE0h)
Address: 746E5268h (jscript+15268h), symbol: "DllGetClassObject" (+40C4h)
Address: 746EF2FBh (jscript+1F2FBh), symbol: "DllGetClassObject" (+E157h)
Address: 746EDCFBh (jscript+1DCFBh), symbol: "DllGetClassObject" (+CB57h)
Address: 746E5268h (jscript+15268h), symbol: "DllGetClassObject" (+40C4h)
Address: 746ED9A8h (jscript+1D9A8h), symbol: "DllGetClassObject" (+C804h)
Address: 746E0001h (jscript+10001h)
Address: 746EDA4Fh (jscript+1DA4Fh), symbol: "DllGetClassObject" (+C8ABh)
Address: 746EE4C7h (jscript+1E4C7h), symbol: "DllGetClassObject" (+D323h)
Address: 7471DBBAh (jscript+4DBBAh), symbol: "DllCanUnloadNow" (+25BA0h)
Address: 746E5D8Bh (jscript+15D8Bh), symbol: "DllGetClassObject" (+4BE7h)
Address: 746E0001h (jscript+10001h)
Address: 746EF29Eh (jscript+1F29Eh), symbol: "DllGetClassObject" (+E0FAh)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E5D7Dh (jscript+15D7Dh), symbol: "DllGetClassObject" (+4BD9h)
Address: 746E5CDBh (jscript+15CDBh), symbol: "DllGetClassObject" (+4B37h)
Address: 746E758Ch (jscript+1758Ch), symbol: "DllGetClassObject" (+63E8h)
Address: 746EEF36h (jscript+1EF36h), symbol: "DllGetClassObject" (+DD92h)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E4F84h (jscript+14F84h), symbol: "DllGetClassObject" (+3DE0h)
Address: 746EE4C7h (jscript+1E4C7h), symbol: "DllGetClassObject" (+D323h)
Address: 7471DBBAh (jscript+4DBBAh), symbol: "DllCanUnloadNow" (+25BA0h)
Address: 746E5D8Bh (jscript+15D8Bh), symbol: "DllGetClassObject" (+4BE7h)
Address: 746E0001h (jscript+10001h)
Address: 746EF29Eh (jscript+1F29Eh), symbol: "DllGetClassObject" (+E0FAh)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E5D7Dh (jscript+15D7Dh), symbol: "DllGetClassObject" (+4BD9h)
Address: 746E5CDBh (jscript+15CDBh), symbol: "DllGetClassObject" (+4B37h)
Address: 746E758Ch (jscript+1758Ch), symbol: "DllGetClassObject" (+63E8h)
Address: 746EEF36h (jscript+1EF36h), symbol: "DllGetClassObject" (+DD92h)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E4F84h (jscript+14F84h), symbol: "DllGetClassObject" (+3DE0h)
Address: 746EE4C7h (jscript+1E4C7h), symbol: "DllGetClassObject" (+D323h)
Address: 746E5D8Bh (jscript+15D8Bh), symbol: "DllGetClassObject" (+4BE7h)
Address: 746E0001h (jscript+10001h)
Address: 746E0001h (jscript+10001h)
Address: 746EF29Eh (jscript+1F29Eh), symbol: "DllGetClassObject" (+E0FAh)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E5D7Dh (jscript+15D7Dh), symbol: "DllGetClassObject" (+4BD9h)
Address: 746E5CDBh (jscript+15CDBh), symbol: "DllGetClassObject" (+4B37h)
Address: 746E758Ch (jscript+1758Ch), symbol: "DllGetClassObject" (+63E8h)
Address: 746EEF36h (jscript+1EF36h), symbol: "DllGetClassObject" (+DD92h)
Environment:
App: foobar2000 v1.1.1
OS: Windows 6.1.7600 x64
CPU: Intel® Core2 Duo CPU E6850 @ 3.00GHz, features: MMX SSE SSE2 SSE3
Audio: Haut-parleurs (Périphérique High Definition Audio); Audio numérique (SPDIF) (Périphérique High Definition Audio)
UI: Columns UI 0.3.8.6
Components:
Core (2010-11-05 10:46:52 UTC)
foobar2000 core 1.1.1
foo_albumlist.dll (2010-11-05 10:45:06 UTC)
Album List 4.5
foo_cdda.dll (2010-11-05 10:44:56 UTC)
CD Audio Decoder 3.0
foo_converter.dll (2010-11-05 10:44:36 UTC)
Converter 1.5
foo_covers2.dll (2010-10-17 09:13:32 UTC)
Locate Covers 0.06
foo_dsp_std.dll (2010-11-05 10:45:06 UTC)
Standard DSP Array 1.0
foo_fileops.dll (2010-11-05 10:43:42 UTC)
File Operations 2.1.3
foo_freedb2.dll (2010-11-05 10:43:42 UTC)
freedb Tagger 0.6.2
foo_input_std.dll (2010-11-05 10:50:28 UTC)
Standard Input Array 1.0
foo_jesus.dll (2010-10-30 21:46:04 UTC)
Autosave & Autobackup 10
foo_lyricsgrabber2.dll (2010-11-13 20:19:52 UTC)
Lyrics Grabber 2 0.5.5.2 beta
foo_masstag.dll (2010-11-10 17:39:24 UTC)
Masstagger 1.8.4
foo_rgscan.dll (2010-11-05 10:44:34 UTC)
ReplayGain Scanner 2.0.9
foo_runcmd.dll (2011-01-27 20:21:56 UTC)
Run Command 1.1
foo_ui_columns.dll (2010-10-17 09:11:34 UTC)
Columns UI 0.3.8.6
foo_ui_std.dll (2010-11-05 10:45:14 UTC)
Default User Interface 0.9.5
foo_uie_albumlist.dll (2010-11-27 21:02:50 UTC)
Album list panel 0.3.5
foo_uie_biography.dll (2010-10-17 09:09:36 UTC)
Biography View 0.4.2.3
foo_uie_dragpanel.dll (2010-11-12 14:54:40 UTC)
Drag Panel 0.0.8
foo_uie_elplaylist.dll (2010-10-26 20:38:46 UTC)
ELPlaylist 0.6.9.1.1(beta)
foo_uie_esplaylist.dll (2010-11-28 19:45:02 UTC)
EsPlaylist 0.1.3.4
foo_uie_lyrics2.dll (2010-10-30 11:29:08 UTC)
Lyric Show Panel 2 0.4.6.15
foo_uie_panel_splitter.dll (2010-10-17 09:12:44 UTC)
Panel Stack Splitter 0.3.8.2(alpha)
foo_uie_vis_channel_spectrum.dll (2010-10-17 09:12:50 UTC)
Channel Spectrum panel 0.17.2
foo_uie_wsh_panel_mod.dll (2010-12-27 08:57:26 UTC)
WSH Panel Mod 1.4.1
foo_unpack.dll (2010-11-05 10:43:56 UTC)
ZIP/GZIP/RAR Reader 1.6
foo_utils.dll (2010-10-29 06:24:46 UTC)
Playlist Tools 0.6.2 beta 6
Recent events:
Watching: J:\MP3
WSH Panel Mod (Tree Explorer v1.0 by Br3tt): initialized in 27 ms
Autoplaylists initialized in: 0:00.008719
"&&0&&Library" : 0:00.000163
"Search jpop" : 0:00.007998
"Search yodelice" : 0:00.000488
"rating > 2" : 0:00.000041
Startup time : 0:01.580589
J:\foobar2000 spotifoo\foobar2000.exe /add Z:\MP3\0\+44\2006 - When Your Heart Stops Beating\01 - +44 - Lycanthrope.mp3