A
AdamDoubleYou
Guest
Hello and thank you in advance for the help!
I'm importing photos to an application via the task scheduler on windows server 2016 standard. The issue is that when i add an argument, the script does not execute if there is a space in my path.
I have confirmed that my code works properly with no spaces and I rename the folders to have no spaces. So this works:
source:folder folder:C:\ProfilePhotos\UserPhotos\ProfilePictures\ domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
However, I need to retain the spaces in the folders. (note the spaces in User Photos & Profile Pictures):
source:folder folder:C:\ProfilePhotos\User Photos\Profile Pictures\ domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
I have tried the following variations of adding single and double quotes but to no avail:
source:folder "folder:C:\ProfilePhotos\User Photos\Profile Pictures\" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
source:folder 'folder:C:\ProfilePhotos\User Photos\Profile Pictures\' domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
source:folder folder:"C:\ProfilePhotos\User Photos\Profile Pictures\" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
source:folder folder:'C:\ProfilePhotos\User Photos\Profile Pictures\' domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
source:folder "'folder:C:\ProfilePhotos\User Photos\Profile Pictures\'" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
source:folder "folder:'C:\ProfilePhotos\User Photos\Profile Pictures\'" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
"source:folder folder:'C:\ProfilePhotos\User Photos\Profile Pictures\'" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
"source:folder folder:C:\ProfilePhotos\User Photos\Profile Pictures\" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
source:folder folder:"'C:\ProfilePhotos\User Photos\Profile Pictures\'" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
Here is my configuration:
View: https://i.imgur.com/ro9Lzlv.png
The Program/Script is a path to an executable.
The argument contains the path which is having issues.
How can i run the argument with spaces in the folder path? Any help would be greatly appreciated. Thank you!!
~Adam
Continue reading...
I'm importing photos to an application via the task scheduler on windows server 2016 standard. The issue is that when i add an argument, the script does not execute if there is a space in my path.
I have confirmed that my code works properly with no spaces and I rename the folders to have no spaces. So this works:
source:folder folder:C:\ProfilePhotos\UserPhotos\ProfilePictures\ domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
However, I need to retain the spaces in the folders. (note the spaces in User Photos & Profile Pictures):
source:folder folder:C:\ProfilePhotos\User Photos\Profile Pictures\ domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
I have tried the following variations of adding single and double quotes but to no avail:
source:folder "folder:C:\ProfilePhotos\User Photos\Profile Pictures\" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
source:folder 'folder:C:\ProfilePhotos\User Photos\Profile Pictures\' domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
source:folder folder:"C:\ProfilePhotos\User Photos\Profile Pictures\" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
source:folder folder:'C:\ProfilePhotos\User Photos\Profile Pictures\' domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
source:folder "'folder:C:\ProfilePhotos\User Photos\Profile Pictures\'" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
source:folder "folder:'C:\ProfilePhotos\User Photos\Profile Pictures\'" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
"source:folder folder:'C:\ProfilePhotos\User Photos\Profile Pictures\'" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
"source:folder folder:C:\ProfilePhotos\User Photos\Profile Pictures\" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
source:folder folder:"'C:\ProfilePhotos\User Photos\Profile Pictures\'" domain:HC nameTyperofileproperty property:tkid crop:bottom pulseConnection:"Data Source=MyServerName01-DEV;Initial Catalog=Pulse;Integrated Security=True"
Here is my configuration:
View: https://i.imgur.com/ro9Lzlv.png
The Program/Script is a path to an executable.
The argument contains the path which is having issues.
How can i run the argument with spaces in the folder path? Any help would be greatly appreciated. Thank you!!
~Adam
Continue reading...