Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: PC dual save possible?

  1. #11
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    It does, and I will just use task scheduler... HOWEVER...

    I just set it up on my computer and it didn't work... perhaps I did something wrong? Can you help me diagnose?

    Here is my "dualsave.bat" file:

    Code:
    REM The Share folder
    SET SHAREFOLDER=\\I-dont-know\tga shared\Agent's Folders\Private\
    
    REM Documents
    copy "%userprofile%\Desktop\*.doc" %SHAREFOLDER%
    copy "%userprofile%\My Documents\*.doc" %SHAREFOLDER%
    
    REM Word 2007 Documents
    copy "%userprofile%\Desktop\*.doc" %SHAREFOLDER%
    copy "%userprofile%\My Documents\*.doc" %SHAREFOLDER%
    
    REM *.txt Documents
    copy "%userprofile%\Desktop\*.txt" %SHAREFOLDER%
    copy "%userprofile%\My Documents\*.txt" %SHAREFOLDER%
    Now I made a .txt file and saved it to my desktop. (the dualsave.bat is also on my desktop) I also made a test.doc and saved it into my documents folder.

    I double clicked the dualsave.bat it ran in DOS real fast. I checked the "Private" folder on the shared drive and nothing is in there.


    Now the "address" I listed as the %sharefolder% is the address of the "private" folder I got when checking properties... Some how I think this is the problem, but I don't know enough to even start... ideas?
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  2. #12
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Odd, the batch file worked fine for me on my computer. Check to see if the path to the shared folder is correct; and if so, make sure it has correct permissions for users to change files in that folder.

    Added Later: When I go into work, I'll try it on our network to see if there may be something else causing it not to work for you.

  3. #13
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Cool, I will check the permissions now. I appreciate the looking into while at work as well...

    I will let you know if the permissions thing has something to do with it
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  4. #14
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Well, the option to allow changing of files was not checked, but I enabled it and it still didn't work...

    Must be the network then? grrrrr

    Why can't this ever be a simple fix...


    <EDIT>
    I just changed the &#37;sharedfolder% to a brand new local folder on my desktop... ran it... nothing... so maybe it isn't the network, what else could I be doing wrong?
    </EDIT>
    Last edited by BLiZZaRD; 02-16-2007 at 06:01 PM.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #15
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The other option is to introduce a system-wide hook that checks for any data written to a file in one of those folders, and write it to the shared folder. This would be a better and possibly more efficient solution, but harder to implement. boxxertrumps has been learning the Windows API, perhaps he could have a go.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #16
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Quote Originally Posted by BLiZZaRD View Post
    Why can't this ever be a simple fix...
    What would be the fun of that

    Just thinking right off the top of my head, are you calling to the shared directory properly. (IE: is the name of the computer/drive spelled correctly in the batch)?

    Try moving to another machine and make a shared folder on that as well. Just some ideas.

  7. #17
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    HOLY CRAP I FIGURED IT OUT!!!

    LMAO... the above is what I had...

    I forgot the "" around SET SHAREDFOLDER!!!

    It works now! AWESOME!!! Thank you!
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  8. #18
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Quote Originally Posted by Twey View Post
    The other option is to introduce a system-wide hook that checks for any data written to a file in one of those folders, and write it to the shared folder. This would be a better and possibly more efficient solution, but harder to implement. boxxertrumps has been learning the Windows API, perhaps he could have a go.

    I would be interested in these options as well! Any more info about them is awesome and welcomed!
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  9. #19
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    If you want you can add more extensions, just add:

    Code:
    REM *.myextensiongoeshere
    copy "&#37;userprofile%\Desktop\*.myextensiongoeshere" %SHAREFOLDER%
    copy "%userprofile%\My Documents\*.myextensiongoeshere" %SHAREFOLDER%
    and a typo for Word '07 documents:

    Code:
    REM Word 2007 Documents
    copy "%userprofile%\Desktop\*.docx" %SHAREFOLDER%
    copy "%userprofile%\My Documents\*.docx" %SHAREFOLDER%
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  10. #20
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Thanks! It works great now!
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •