WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> How to... >> GdPUtil.exe and spaces in dirs
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1099318691

Message started by jesper on Nov 1st, 2004 at 9:18pm

Title: GdPUtil.exe and spaces in dirs
Post by jesper on Nov 1st, 2004 at 9:18pm
Although i constantly try convince colleagues and friends to not use spaces in files or directories i bump into cases with spaces!

I am becoming increasingly happy with your util GdPUtil, but today i ran into a problem regarding spaces in a dirname:

C:\admin\GdPUtil.exe -deleteolderthan 1 N:\MYDOMAIN.DK\PUBLIC FOLDERS\FreeSpaceTEST\Jesper\  -subdirs -hours -test
Directory does not exist.

Adding " around does not solve it:
C:\admin\GdPUtil.exe -deleteolderthan 1 "N:\MYDOMAIN.DK\PUBLIC FOLDERS\FreeSpaceTEST\Jesper\"  -subdirs -hours -test
Directory does not exist.

Can you reproduce this behaviour or is it me doing it wrong?

Title: Re: GdPUtil.exe and spaces in dirs
Post by Gert on Nov 1st, 2004 at 9:46pm
Remove the last backslash from the directory name:
[code]
C:\admin\GdPUtil.exe -deleteolderthan 1 "N:\MYDOMAIN.DK\PUBLIC FOLDERS\FreeSpaceTEST\Jesper"  -subdirs -hours -test [/code]

Works fine here!

Gert

Title: Re: GdPUtil.exe and spaces in dirs
Post by jesper on Nov 1st, 2004 at 9:51pm
Doh..  I cant believe i did not try that..  :C

Gert, thank you!

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.