PC Review


Reply
Thread Tools Rate Thread

Command line to synchronize briefcase?

 
 
David Trimboli
Guest
Posts: n/a
 
      11th Apr 2006
To temporarily deal with a network slowness issue, we've set up a user
with a briefcase to work locally, and to synchronize with his network
files when he's done. (We're not using Offline Files because he's not
actually going offline.)

I thought it would help if I could find a way to synchronize the
briefcase automatically, either as a logon and logoff script or as a
Scheduled Task. Some searching on the Internet leaves me little hope
that there is a way to do this: others have asked, but I have found no
responses.

Does anyone here know of a way to script the synchronization of a
briefcase?

David
Stardate 6276.9


 
Reply With Quote
 
 
 
 
David Candy
Guest
Posts: n/a
 
      11th Apr 2006
I can tell you the command line for the first dialog you can see. But that seems to be it. A briefcase is a ordinary folder with two files in it.

This code can do it. As it is it enumerates every command. For me Update All is 2. So
' objItemVerbs.item(2).doit

will do it if you run the rest of the code. There may be a simplier way - see underneath this way (I'll let you experiment).


set objShell = CreateObject("Shell.Application")
set objFolder2 = objShell.Namespace("C:\Documents and Settings\David Candy\Desktop\New Folder")
set objFolderItem = objFolder2.Self
set objItemVerbs = objFolderItem.Verbs

For i = 0 to objItemVerbs.count -1
A=objItemVerbs.item(i)
msgbox A & vbcrlf & i
' objItemVerbs.item(i).doit
i = i + 1
Next

Or Try these two ways

Set objShell = CreateObject("Shell.Application")
Set MyComp=objShell.NameSpace(17)
Set CD=MyComp.ParseName("E:\")
Set Context=CD.Verbs
CD.InvokeVerb "E&ject"


'This line on are comments only
'Note if a letter is underlined you must insert an ampersand before it.
'Normally only the first line and the line below is needed for most verbs. Eject is different.
'objshell.ShellExecute "e:" ,,,"E&ject"
'object.ShellExecute(sFile [,vArguments] [,vDirectory] [,vOperation] [,vShow])

--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"David Trimboli" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> To temporarily deal with a network slowness issue, we've set up a user
> with a briefcase to work locally, and to synchronize with his network
> files when he's done. (We're not using Offline Files because he's not
> actually going offline.)
>
> I thought it would help if I could find a way to synchronize the
> briefcase automatically, either as a logon and logoff script or as a
> Scheduled Task. Some searching on the Internet leaves me little hope
> that there is a way to do this: others have asked, but I have found no
> responses.
>
> Does anyone here know of a way to script the synchronization of a
> briefcase?
>
> David
> Stardate 6276.9
>
>

 
Reply With Quote
 
David Candy
Guest
Posts: n/a
 
      15th Apr 2006
Guess I wasted my time with this dickwad.

--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"David Candy" <.> wrote in message news:(E-Mail Removed)...
I can tell you the command line for the first dialog you can see. But that seems to be it. A briefcase is a ordinary folder with two files in it.

This code can do it. As it is it enumerates every command. For me Update All is 2. So
' objItemVerbs.item(2).doit

will do it if you run the rest of the code. There may be a simplier way - see underneath this way (I'll let you experiment).


set objShell = CreateObject("Shell.Application")
set objFolder2 = objShell.Namespace("C:\Documents and Settings\David Candy\Desktop\New Folder")
set objFolderItem = objFolder2.Self
set objItemVerbs = objFolderItem.Verbs

For i = 0 to objItemVerbs.count -1
A=objItemVerbs.item(i)
msgbox A & vbcrlf & i
' objItemVerbs.item(i).doit
i = i + 1
Next

Or Try these two ways

Set objShell = CreateObject("Shell.Application")
Set MyComp=objShell.NameSpace(17)
Set CD=MyComp.ParseName("E:\")
Set Context=CD.Verbs
CD.InvokeVerb "E&ject"


'This line on are comments only
'Note if a letter is underlined you must insert an ampersand before it.
'Normally only the first line and the line below is needed for most verbs. Eject is different.
'objshell.ShellExecute "e:" ,,,"E&ject"
'object.ShellExecute(sFile [,vArguments] [,vDirectory] [,vOperation] [,vShow])

--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"David Trimboli" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> To temporarily deal with a network slowness issue, we've set up a user
> with a briefcase to work locally, and to synchronize with his network
> files when he's done. (We're not using Offline Files because he's not
> actually going offline.)
>
> I thought it would help if I could find a way to synchronize the
> briefcase automatically, either as a logon and logoff script or as a
> Scheduled Task. Some searching on the Internet leaves me little hope
> that there is a way to do this: others have asked, but I have found no
> responses.
>
> Does anyone here know of a way to script the synchronization of a
> briefcase?
>
> David
> Stardate 6276.9
>
>

 
Reply With Quote
 
Al Dunbar [MS-MVP]
Guest
Posts: n/a
 
      16th Apr 2006
Maybe not. Maybe he just forgot to thank you...

/Al


"David Candy" <.> wrote in message
news:(E-Mail Removed)...
Guess I wasted my time with this dickwad.

--
----------------------------------------------------------------------------
----------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"David Candy" <.> wrote in message
news:(E-Mail Removed)...
I can tell you the command line for the first dialog you can see. But that
seems to be it. A briefcase is a ordinary folder with two files in it.

This code can do it. As it is it enumerates every command. For me Update All
is 2. So
' objItemVerbs.item(2).doit

will do it if you run the rest of the code. There may be a simplier way -
see underneath this way (I'll let you experiment).


set objShell = CreateObject("Shell.Application")
set objFolder2 = objShell.Namespace("C:\Documents and Settings\David
Candy\Desktop\New Folder")
set objFolderItem = objFolder2.Self
set objItemVerbs = objFolderItem.Verbs

For i = 0 to objItemVerbs.count -1
A=objItemVerbs.item(i)
msgbox A & vbcrlf & i
' objItemVerbs.item(i).doit
i = i + 1
Next

Or Try these two ways

Set objShell = CreateObject("Shell.Application")
Set MyComp=objShell.NameSpace(17)
Set CD=MyComp.ParseName("E:\")
Set Context=CD.Verbs
CD.InvokeVerb "E&ject"


'This line on are comments only
'Note if a letter is underlined you must insert an ampersand before it.
'Normally only the first line and the line below is needed for most verbs.
Eject is different.
'objshell.ShellExecute "e:" ,,,"E&ject"
'object.ShellExecute(sFile [,vArguments] [,vDirectory] [,vOperation]
[,vShow])

--
----------------------------------------------------------------------------
----------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"David Trimboli" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> To temporarily deal with a network slowness issue, we've set up a user
> with a briefcase to work locally, and to synchronize with his network
> files when he's done. (We're not using Offline Files because he's not
> actually going offline.)
>
> I thought it would help if I could find a way to synchronize the
> briefcase automatically, either as a logon and logoff script or as a
> Scheduled Task. Some searching on the Internet leaves me little hope
> that there is a way to do this: others have asked, but I have found no
> responses.
>
> Does anyone here know of a way to script the synchronization of a
> briefcase?
>
> David
> Stardate 6276.9
>
>



 
Reply With Quote
 
David Trimboli
Guest
Posts: n/a
 
      18th Apr 2006
!!

Or maybe I was out sick and haven't had a chance to try anything
out...

David
Stardate 6296.3

"Al Dunbar [MS-MVP]" <alan-no-drub-(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Maybe not. Maybe he just forgot to thank you...
>
> /Al
>
>
> "David Candy" <.> wrote in message
> news:(E-Mail Removed)...
> Guess I wasted my time with this dickwad.
>
> --
> ----------------------------------------------------------------------------
> ----------------------
> How to lose a war in Iraq
> http://webdiary.com.au/cms/?q=node/1335#comment-48641
> =================================================
> "David Candy" <.> wrote in message
> news:(E-Mail Removed)...
> I can tell you the command line for the first dialog you can see.
> But that
> seems to be it. A briefcase is a ordinary folder with two files in
> it.
>
> This code can do it. As it is it enumerates every command. For me
> Update All
> is 2. So
> ' objItemVerbs.item(2).doit
>
> will do it if you run the rest of the code. There may be a simplier
> way -
> see underneath this way (I'll let you experiment).
>
>
> set objShell = CreateObject("Shell.Application")
> set objFolder2 = objShell.Namespace("C:\Documents and Settings\David
> Candy\Desktop\New Folder")
> set objFolderItem = objFolder2.Self
> set objItemVerbs = objFolderItem.Verbs
>
> For i = 0 to objItemVerbs.count -1
> A=objItemVerbs.item(i)
> msgbox A & vbcrlf & i
> ' objItemVerbs.item(i).doit
> i = i + 1
> Next
>
> Or Try these two ways
>
> Set objShell = CreateObject("Shell.Application")
> Set MyComp=objShell.NameSpace(17)
> Set CD=MyComp.ParseName("E:\")
> Set Context=CD.Verbs
> CD.InvokeVerb "E&ject"
>
>
> 'This line on are comments only
> 'Note if a letter is underlined you must insert an ampersand before
> it.
> 'Normally only the first line and the line below is needed for most
> verbs.
> Eject is different.
> 'objshell.ShellExecute "e:" ,,,"E&ject"
> 'object.ShellExecute(sFile [,vArguments] [,vDirectory] [,vOperation]
> [,vShow])
>
> --
> ----------------------------------------------------------------------------
> ----------------------
> How to lose a war in Iraq
> http://webdiary.com.au/cms/?q=node/1335#comment-48641
> =================================================
> "David Trimboli" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> To temporarily deal with a network slowness issue, we've set up a
>> user
>> with a briefcase to work locally, and to synchronize with his
>> network
>> files when he's done. (We're not using Offline Files because he's
>> not
>> actually going offline.)
>>
>> I thought it would help if I could find a way to synchronize the
>> briefcase automatically, either as a logon and logoff script or as
>> a
>> Scheduled Task. Some searching on the Internet leaves me little
>> hope
>> that there is a way to do this: others have asked, but I have found
>> no
>> responses.
>>
>> Does anyone here know of a way to script the synchronization of a
>> briefcase?
>>
>> David
>> Stardate 6276.9
>>
>>

>
>



 
Reply With Quote
 
David Trimboli
Guest
Posts: n/a
 
      18th Apr 2006
Okay, I see what this is doing now (I'm not very famliar with the
Shell object). Strangely, it's not coming up with Update All as any of
the verbs items when run against a briefcase.

David
Stardate 6296.4



"David Candy" <.> wrote in message
news:(E-Mail Removed)...
I can tell you the command line for the first dialog you can see. But
that seems to be it. A briefcase is a ordinary folder with two files
in it.

This code can do it. As it is it enumerates every command. For me
Update All is 2. So
' objItemVerbs.item(2).doit

will do it if you run the rest of the code. There may be a simplier
way - see underneath this way (I'll let you experiment).


set objShell = CreateObject("Shell.Application")
set objFolder2 = objShell.Namespace("C:\Documents and Settings\David
Candy\Desktop\New Folder")
set objFolderItem = objFolder2.Self
set objItemVerbs = objFolderItem.Verbs

For i = 0 to objItemVerbs.count -1
A=objItemVerbs.item(i)
msgbox A & vbcrlf & i
' objItemVerbs.item(i).doit
i = i + 1
Next

Or Try these two ways

Set objShell = CreateObject("Shell.Application")
Set MyComp=objShell.NameSpace(17)
Set CD=MyComp.ParseName("E:\")
Set Context=CD.Verbs
CD.InvokeVerb "E&ject"


'This line on are comments only
'Note if a letter is underlined you must insert an ampersand before
it.
'Normally only the first line and the line below is needed for most
verbs. Eject is different.
'objshell.ShellExecute "e:" ,,,"E&ject"
'object.ShellExecute(sFile [,vArguments] [,vDirectory] [,vOperation]
[,vShow])

--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"David Trimboli" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> To temporarily deal with a network slowness issue, we've set up a
> user
> with a briefcase to work locally, and to synchronize with his
> network
> files when he's done. (We're not using Offline Files because he's
> not
> actually going offline.)
>
> I thought it would help if I could find a way to synchronize the
> briefcase automatically, either as a logon and logoff script or as a
> Scheduled Task. Some searching on the Internet leaves me little hope
> that there is a way to do this: others have asked, but I have found
> no
> responses.
>
> Does anyone here know of a way to script the synchronization of a
> briefcase?
>
> David
> Stardate 6276.9
>
>



 
Reply With Quote
 
David Candy
Guest
Posts: n/a
 
      19th Apr 2006
I changed Msgbox to wscript.echo

C:\Program Files\Support Tools>cscript "C:\Documents and Settings\sktop\New Text Document ().vbs"
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved

&Open
0
&Update All
2
Cu&t
4
Create &Shortcut
6
Rena&me
8


--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"David Trimboli" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Okay, I see what this is doing now (I'm not very famliar with the
> Shell object). Strangely, it's not coming up with Update All as any of
> the verbs items when run against a briefcase.
>
> David
> Stardate 6296.4
>
>
>
> "David Candy" <.> wrote in message
> news:(E-Mail Removed)...
> I can tell you the command line for the first dialog you can see. But
> that seems to be it. A briefcase is a ordinary folder with two files
> in it.
>
> This code can do it. As it is it enumerates every command. For me
> Update All is 2. So
> ' objItemVerbs.item(2).doit
>
> will do it if you run the rest of the code. There may be a simplier
> way - see underneath this way (I'll let you experiment).
>
>
> set objShell = CreateObject("Shell.Application")
> set objFolder2 = objShell.Namespace("C:\Documents and Settings\David
> Candy\Desktop\New Folder")
> set objFolderItem = objFolder2.Self
> set objItemVerbs = objFolderItem.Verbs
>
> For i = 0 to objItemVerbs.count -1
> A=objItemVerbs.item(i)
> msgbox A & vbcrlf & i
> ' objItemVerbs.item(i).doit
> i = i + 1
> Next
>
> Or Try these two ways
>
> Set objShell = CreateObject("Shell.Application")
> Set MyComp=objShell.NameSpace(17)
> Set CD=MyComp.ParseName("E:\")
> Set Context=CD.Verbs
> CD.InvokeVerb "E&ject"
>
>
> 'This line on are comments only
> 'Note if a letter is underlined you must insert an ampersand before
> it.
> 'Normally only the first line and the line below is needed for most
> verbs. Eject is different.
> 'objshell.ShellExecute "e:" ,,,"E&ject"
> 'object.ShellExecute(sFile [,vArguments] [,vDirectory] [,vOperation]
> [,vShow])
>
> --
> --------------------------------------------------------------------------------------------------
> How to lose a war in Iraq
> http://webdiary.com.au/cms/?q=node/1335#comment-48641
> =================================================
> "David Trimboli" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> To temporarily deal with a network slowness issue, we've set up a
>> user
>> with a briefcase to work locally, and to synchronize with his
>> network
>> files when he's done. (We're not using Offline Files because he's
>> not
>> actually going offline.)
>>
>> I thought it would help if I could find a way to synchronize the
>> briefcase automatically, either as a logon and logoff script or as a
>> Scheduled Task. Some searching on the Internet leaves me little hope
>> that there is a way to do this: others have asked, but I have found
>> no
>> responses.
>>
>> Does anyone here know of a way to script the synchronization of a
>> briefcase?
>>
>> David
>> Stardate 6276.9
>>
>>

>
>

 
Reply With Quote
 
David Candy
Guest
Posts: n/a
 
      19th Apr 2006
Choosing verbs this way crashes scripts on some objects. So testing is needed for each case.,

--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"David Candy" <.> wrote in message news:(E-Mail Removed)...
I changed Msgbox to wscript.echo

C:\Program Files\Support Tools>cscript "C:\Documents and Settings\sktop\New Text Document ().vbs"
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved

&Open
0
&Update All
2
Cu&t
4
Create &Shortcut
6
Rena&me
8


--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"David Trimboli" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Okay, I see what this is doing now (I'm not very famliar with the
> Shell object). Strangely, it's not coming up with Update All as any of
> the verbs items when run against a briefcase.
>
> David
> Stardate 6296.4
>
>
>
> "David Candy" <.> wrote in message
> news:(E-Mail Removed)...
> I can tell you the command line for the first dialog you can see. But
> that seems to be it. A briefcase is a ordinary folder with two files
> in it.
>
> This code can do it. As it is it enumerates every command. For me
> Update All is 2. So
> ' objItemVerbs.item(2).doit
>
> will do it if you run the rest of the code. There may be a simplier
> way - see underneath this way (I'll let you experiment).
>
>
> set objShell = CreateObject("Shell.Application")
> set objFolder2 = objShell.Namespace("C:\Documents and Settings\David
> Candy\Desktop\New Folder")
> set objFolderItem = objFolder2.Self
> set objItemVerbs = objFolderItem.Verbs
>
> For i = 0 to objItemVerbs.count -1
> A=objItemVerbs.item(i)
> msgbox A & vbcrlf & i
> ' objItemVerbs.item(i).doit
> i = i + 1
> Next
>
> Or Try these two ways
>
> Set objShell = CreateObject("Shell.Application")
> Set MyComp=objShell.NameSpace(17)
> Set CD=MyComp.ParseName("E:\")
> Set Context=CD.Verbs
> CD.InvokeVerb "E&ject"
>
>
> 'This line on are comments only
> 'Note if a letter is underlined you must insert an ampersand before
> it.
> 'Normally only the first line and the line below is needed for most
> verbs. Eject is different.
> 'objshell.ShellExecute "e:" ,,,"E&ject"
> 'object.ShellExecute(sFile [,vArguments] [,vDirectory] [,vOperation]
> [,vShow])
>
> --
> --------------------------------------------------------------------------------------------------
> How to lose a war in Iraq
> http://webdiary.com.au/cms/?q=node/1335#comment-48641
> =================================================
> "David Trimboli" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> To temporarily deal with a network slowness issue, we've set up a
>> user
>> with a briefcase to work locally, and to synchronize with his
>> network
>> files when he's done. (We're not using Offline Files because he's
>> not
>> actually going offline.)
>>
>> I thought it would help if I could find a way to synchronize the
>> briefcase automatically, either as a logon and logoff script or as a
>> Scheduled Task. Some searching on the Internet leaves me little hope
>> that there is a way to do this: others have asked, but I have found
>> no
>> responses.
>>
>> Does anyone here know of a way to script the synchronization of a
>> briefcase?
>>
>> David
>> Stardate 6276.9
>>
>>

>
>

 
Reply With Quote
 
David Trimboli
Guest
Posts: n/a
 
      19th Apr 2006
Let me show you what I get. I created a new briefcase on my desktop,
opened it, dragged a new text file from My Documents into the
briefcase, then closed it. The script is on the desktop and called
listcommands.vbs, and has appropriate paths changed. Then I did this:


=============================
C>dir "New Briefcase"
Volume in drive C is Windows XP
Volume Serial Number is F834-F0D1

Directory of C:\Documents and Settings\trimboli\Desktop\New Briefcase

04/19/2006 09:36 AM <DIR> .
04/19/2006 09:36 AM <DIR> ..
04/18/2006 09:40 AM 0 New Text Document.txt
1 File(s) 0 bytes
2 Dir(s) 13,726,842,880 bytes free

C>listcommands
&Open
0
Scan with Sophos Anti-&Virus
2
Add to &Zip
4
Cu&t
6
Create &Shortcut
8
Rena&me
10

C>
============================


Somehow, I don't have Update All as an option this way, although the
briefcase is functioning normally.

David
Stardate 6298.6


"David Candy" <.> wrote in message
news:(E-Mail Removed)...
I changed Msgbox to wscript.echo

C:\Program Files\Support Tools>cscript "C:\Documents and
Settings\sktop\New Text Document ().vbs"
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved

&Open
0
&Update All
2
Cu&t
4
Create &Shortcut
6
Rena&me
8


--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"David Trimboli" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Okay, I see what this is doing now (I'm not very famliar with the
> Shell object). Strangely, it's not coming up with Update All as any
> of
> the verbs items when run against a briefcase.
>
> David
> Stardate 6296.4
>
>
>
> "David Candy" <.> wrote in message
> news:(E-Mail Removed)...
> I can tell you the command line for the first dialog you can see.
> But
> that seems to be it. A briefcase is a ordinary folder with two files
> in it.
>
> This code can do it. As it is it enumerates every command. For me
> Update All is 2. So
> ' objItemVerbs.item(2).doit
>
> will do it if you run the rest of the code. There may be a simplier
> way - see underneath this way (I'll let you experiment).
>
>
> set objShell = CreateObject("Shell.Application")
> set objFolder2 = objShell.Namespace("C:\Documents and Settings\David
> Candy\Desktop\New Folder")
> set objFolderItem = objFolder2.Self
> set objItemVerbs = objFolderItem.Verbs
>
> For i = 0 to objItemVerbs.count -1
> A=objItemVerbs.item(i)
> msgbox A & vbcrlf & i
> ' objItemVerbs.item(i).doit
> i = i + 1
> Next
>
> Or Try these two ways
>
> Set objShell = CreateObject("Shell.Application")
> Set MyComp=objShell.NameSpace(17)
> Set CD=MyComp.ParseName("E:\")
> Set Context=CD.Verbs
> CD.InvokeVerb "E&ject"
>
>
> 'This line on are comments only
> 'Note if a letter is underlined you must insert an ampersand before
> it.
> 'Normally only the first line and the line below is needed for most
> verbs. Eject is different.
> 'objshell.ShellExecute "e:" ,,,"E&ject"
> 'object.ShellExecute(sFile [,vArguments] [,vDirectory] [,vOperation]
> [,vShow])
>
> --
> --------------------------------------------------------------------------------------------------
> How to lose a war in Iraq
> http://webdiary.com.au/cms/?q=node/1335#comment-48641
> =================================================
> "David Trimboli" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> To temporarily deal with a network slowness issue, we've set up a
>> user
>> with a briefcase to work locally, and to synchronize with his
>> network
>> files when he's done. (We're not using Offline Files because he's
>> not
>> actually going offline.)
>>
>> I thought it would help if I could find a way to synchronize the
>> briefcase automatically, either as a logon and logoff script or as
>> a
>> Scheduled Task. Some searching on the Internet leaves me little
>> hope
>> that there is a way to do this: others have asked, but I have found
>> no
>> responses.
>>
>> Does anyone here know of a way to script the synchronization of a
>> briefcase?
>>
>> David
>> Stardate 6276.9
>>
>>

>
>



 
Reply With Quote
 
David Candy
Guest
Posts: n/a
 
      20th Apr 2006
What does your right click menu says.

--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"David Trimboli" <(E-Mail Removed)> wrote in message news:%23$(E-Mail Removed)...
> Let me show you what I get. I created a new briefcase on my desktop,
> opened it, dragged a new text file from My Documents into the
> briefcase, then closed it. The script is on the desktop and called
> listcommands.vbs, and has appropriate paths changed. Then I did this:
>
>
> =============================
> C>dir "New Briefcase"
> Volume in drive C is Windows XP
> Volume Serial Number is F834-F0D1
>
> Directory of C:\Documents and Settings\trimboli\Desktop\New Briefcase
>
> 04/19/2006 09:36 AM <DIR> .
> 04/19/2006 09:36 AM <DIR> ..
> 04/18/2006 09:40 AM 0 New Text Document.txt
> 1 File(s) 0 bytes
> 2 Dir(s) 13,726,842,880 bytes free
>
> C>listcommands
> &Open
> 0
> Scan with Sophos Anti-&Virus
> 2
> Add to &Zip
> 4
> Cu&t
> 6
> Create &Shortcut
> 8
> Rena&me
> 10
>
> C>
> ============================
>
>
> Somehow, I don't have Update All as an option this way, although the
> briefcase is functioning normally.
>
> David
> Stardate 6298.6
>
>
> "David Candy" <.> wrote in message
> news:(E-Mail Removed)...
> I changed Msgbox to wscript.echo
>
> C:\Program Files\Support Tools>cscript "C:\Documents and
> Settings\sktop\New Text Document ().vbs"
> Microsoft (R) Windows Script Host Version 5.6
> Copyright (C) Microsoft Corporation 1996-2001. All rights reserved
>
> &Open
> 0
> &Update All
> 2
> Cu&t
> 4
> Create &Shortcut
> 6
> Rena&me
> 8
>
>
> --
> --------------------------------------------------------------------------------------------------
> How to lose a war in Iraq
> http://webdiary.com.au/cms/?q=node/1335#comment-48641
> =================================================
> "David Trimboli" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Okay, I see what this is doing now (I'm not very famliar with the
>> Shell object). Strangely, it's not coming up with Update All as any
>> of
>> the verbs items when run against a briefcase.
>>
>> David
>> Stardate 6296.4
>>
>>
>>
>> "David Candy" <.> wrote in message
>> news:(E-Mail Removed)...
>> I can tell you the command line for the first dialog you can see.
>> But
>> that seems to be it. A briefcase is a ordinary folder with two files
>> in it.
>>
>> This code can do it. As it is it enumerates every command. For me
>> Update All is 2. So
>> ' objItemVerbs.item(2).doit
>>
>> will do it if you run the rest of the code. There may be a simplier
>> way - see underneath this way (I'll let you experiment).
>>
>>
>> set objShell = CreateObject("Shell.Application")
>> set objFolder2 = objShell.Namespace("C:\Documents and Settings\David
>> Candy\Desktop\New Folder")
>> set objFolderItem = objFolder2.Self
>> set objItemVerbs = objFolderItem.Verbs
>>
>> For i = 0 to objItemVerbs.count -1
>> A=objItemVerbs.item(i)
>> msgbox A & vbcrlf & i
>> ' objItemVerbs.item(i).doit
>> i = i + 1
>> Next
>>
>> Or Try these two ways
>>
>> Set objShell = CreateObject("Shell.Application")
>> Set MyComp=objShell.NameSpace(17)
>> Set CD=MyComp.ParseName("E:\")
>> Set Context=CD.Verbs
>> CD.InvokeVerb "E&ject"
>>
>>
>> 'This line on are comments only
>> 'Note if a letter is underlined you must insert an ampersand before
>> it.
>> 'Normally only the first line and the line below is needed for most
>> verbs. Eject is different.
>> 'objshell.ShellExecute "e:" ,,,"E&ject"
>> 'object.ShellExecute(sFile [,vArguments] [,vDirectory] [,vOperation]
>> [,vShow])
>>
>> --
>> --------------------------------------------------------------------------------------------------
>> How to lose a war in Iraq
>> http://webdiary.com.au/cms/?q=node/1335#comment-48641
>> =================================================
>> "David Trimboli" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> To temporarily deal with a network slowness issue, we've set up a
>>> user
>>> with a briefcase to work locally, and to synchronize with his
>>> network
>>> files when he's done. (We're not using Offline Files because he's
>>> not
>>> actually going offline.)
>>>
>>> I thought it would help if I could find a way to synchronize the
>>> briefcase automatically, either as a logon and logoff script or as
>>> a
>>> Scheduled Task. Some searching on the Internet leaves me little
>>> hope
>>> that there is a way to do this: others have asked, but I have found
>>> no
>>> responses.
>>>
>>> Does anyone here know of a way to script the synchronization of a
>>> briefcase?
>>>
>>> David
>>> Stardate 6276.9
>>>
>>>

>>
>>

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Briefcase from Command Line DickJ Windows XP General 4 23rd Aug 2008 05:17 AM
Sync Briefcase in command line Alan Tang Microsoft Windows 2000 CMD Promt 2 17th Jan 2006 01:16 AM
Synchronize/Briefcase =?Utf-8?B?RGF2ZSBM?= Windows XP Networking 1 6th Feb 2005 06:12 PM
Re: briefcase vs. synchronize pre Microsoft Windows 2000 0 21st Jul 2003 07:00 PM
Re: briefcase vs. synchronize Lanwench [MVP - Exchange] Microsoft Windows 2000 0 21st Jul 2003 05:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:57 PM.