Hi,
As part of a SQL scrip I have the following:
The results show NULL after each command. Each row in the results shows c:\WINDOWS\system32> in front of the the command each time. For example,
C:\WINDOWS\system32>"c:\program files (x86)\irfanview\i_view32.exe" \\server\images\county\county\D0088009.001 /append=c:\TiffMerge\234388
If I try running this row in command line, I get an 'Access denied' error. If I remove the c:\WINDOWS\system32 and just run: "c:\program files (x86)\irfanview\i_view32.exe" \\server\images\county\county\D0088009.001 /append=c:\TiffMerge\234388
it runs just fine.
Is there a way to eliminate c:\WINDOWS\system32 from the resulting command line scripts?
As part of a SQL scrip I have the following:
Code:
set @merge = (select 'for %a in (' + serverandpath + originalname + '.*) do "c:\program files (x86)\irfanview\i_view32.exe" %a /append=c:\TiffMerge\' + newname + ' from ImageDelivery where counter = @file)
exec master..xp_cmdshell @merge
The results show NULL after each command. Each row in the results shows c:\WINDOWS\system32> in front of the the command each time. For example,
C:\WINDOWS\system32>"c:\program files (x86)\irfanview\i_view32.exe" \\server\images\county\county\D0088009.001 /append=c:\TiffMerge\234388
If I try running this row in command line, I get an 'Access denied' error. If I remove the c:\WINDOWS\system32 and just run: "c:\program files (x86)\irfanview\i_view32.exe" \\server\images\county\county\D0088009.001 /append=c:\TiffMerge\234388
it runs just fine.
Is there a way to eliminate c:\WINDOWS\system32 from the resulting command line scripts?