CLASSPATH and extensions

I have an executable JAR file that uses the CommAPI - which is installed properly - i.e. when I run the program in non-jar form it works fine:
C:> java ISC_Knox/ISC_KnoxApplicationHowever when I run it in jar form I get an class-not-found exception
C:> java -jar ISC_Knox.jar
Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener
    at java.lang.ClassLoader.defineClass0(Native Method)
    ...The only way I can get it to work is to add a "Class-path=comm.jar" to my manifest file. However this alone doesn't work - I have to copy the comm.jar to the same directory as my executable jar.
My question is why doesn't java use the system CLASSPATH variable to find comm.jar? It doesn't seem right that I need a second copy of comm.jar in the current directory.

H:\Forte-Projects\MyProjects> echo %CLASSPATH%
.;H:\Java\j2sdk1.4.0\lib\comm.jarThen in main:
System.out.println("CLASSPATH=" + System.getProperty("java.class.path"));And the output is:
H:\Forte-Projects\MyProjects>java.exe Djava.rmi.server.codebase=file:/H:\Forte-projects\MyProjects\ISC_Knox.jar -Djava.security.policy=ISC_Knox.policy -jar ISC_Knox.jar
CLASSPATH=ISC_Knox.jarOr this:
H:\Forte-Projects\MyProjects>java.exe Djava.rmi.server.codebase=file:/H:\Forte-projects\MyProjects\ISC_Knox.jar -Djava.security.policy=ISC_Knox.policy -classpath %CLASSPATH%-jar ISC_Knox.jar
CLASSPATH=ISC_Knox.jar

Similar Messages

  • Issue with classpath and extension

    Hi,
    I have added a JAR file to the jre/lib/ext folder which contains a class file called Options.class
    However, when I call "java Options", I get NoClassDefFoundError. I don't understand why because the class file is definitely in that JAR file, and according to [this document|http://download.oracle.com/javase/1.3/docs/tooldocs/findingclasses.html#extclass], it should work.
    In fact, using -classpath to explicitly specify the JAR file in the ext directory works. But I shouldn't have to do that!
    Anyone knows what could be going on here?

    BigMike86 wrote:
    Well, the JAR I'm trying to add is here.
    The instructions specifically say to put it in the ext folder.
    The JAR should contain an Options application which I should be able to open by only typing "java Options".Based on what? Do the docs say specifically that? Is the Options class in a package?
    Again, you're not providing much in the way of detail, so all I can say is that there's something wrong with your assumptions.

  • Split filename to file and extension

    Hi experts,
    Does any know a FM or class, which is released and I can use to get the file name and extension?
    Normally I used the FM SPLIT_FILE.
    But this FM does only exports CHAR3.
    So I get a problem with new office-files (XLSX, DOCX)...
    thx for any help

    hi  ,
    Data : f1(20) type c ,
               f2(5) type  c,
              c_tab  type c value  '.' .
    data: f_name(30) type c value 'TEST.EXE' .
    split  F_NAME AT C_TAB INTO F1 F2 .
    Regards
    Deepak.

  • Error updating Dreamweaver and Extension Manager CS6 (Creative Cloud)

    Hello,
    I'm having troubles updating Dreamweaver and Extension Manager CS6 (Creative Cloud) on Macbook Pro with OS version 10.8.2. I get this error codes for both updates U44M1P7.
    The log files are generated.
    Here is an extract (last lines) of the dreamweaver log file (Adobe Dreamweaver CS6 12.2.0 04-16-2013.log):
    04/16/13 10:17:39:997 | [INFO] |  | OOBE | DE |  |  |  | 118619 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    04/16/13 10:17:39:997 | [INFO] |  | OOBE | DE |  |  |  | 118619 | Installer Operation: PayloadUninstaller
    04/16/13 10:17:39:997 | [INFO] |  | OOBE | DE |  |  |  | 118619 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    04/16/13 10:17:39:997 | [INFO] |  | OOBE | DE |  |  |  | 118619 | Session {A9861095-6F8C-11E2-B313-84E4FE4B0A47} modify request for AdobeCode: {CB894C92-6F8C-11E2-B313-9980D700C45F}
    04/16/13 10:17:40:024 | [INFO] |  | OOBE | DE |  |  |  | 118619 | Effective AdobeCode for: {CB894C92-6F8C-11E2-B313-9980D700C45F} is {CB894C92-6F8C-11E2-B313-9980D700C45F}
    04/16/13 10:17:40:070 | [INFO] |  | OOBE | DE |  |  |  | 118619 | PDB install manipulation failed
    04/16/13 10:17:40:098 | [INFO] |  | OOBE | DE |  |  |  | 118086 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* Operation complete. Setting status: -1 =*=*=*=*=*=*=*=*=*=*=*=*=*
    04/16/13 10:17:40:098 | [INFO] |  | OOBE | DE |  |  |  | 118086 | :: END TIMER :: [Payload Operation :{CB894C92-6F8C-11E2-B313-9980D700C45F}] took 101 milliseconds (0.101 seconds) DTR = 39.604 KBPS (0.0386757 MBPS)
    04/16/13 10:17:40:099 | [INFO] |  | OOBE | DE |  |  |  | 118086 | User specified overrideFile:
    04/16/13 10:17:40:101 | [INFO] |  | OOBE | DE |  |  |  | 118086 | The csu inventory was not updated for payload Adobe Dreamweaver CS6_12.2.0_AdobeDreamweaver12de_DELanguagePack 12.2.0.0 {CB894C92-6F8C-11E2-B313-9980D700C45F}, value of local var is -1
    04/16/13 10:17:40:101 | [INFO] |  | OOBE | DE |  |  |  | 118086 | Calling the ROLLBACK custom action code for pre-install for payload Adobe Dreamweaver CS6_12.2.0_AdobeDreamweaver12de_DELanguagePack 12.2.0.0 {CB894C92-6F8C-11E2-B313-9980D700C45F}
    04/16/13 10:17:40:143 | [INFO] |  | OOBE | DE |  |  |  | 118086 | No operation.  We're done:
    04/16/13 10:17:42:147 | [INFO] |  | OOBE | DE |  |  |  | 118086 | Total components installed: 0
    04/16/13 10:17:42:147 | [INFO] |  | OOBE | DE |  |  |  | 118086 | Total components repaired: 0
    04/16/13 10:17:42:147 | [INFO] |  | OOBE | DE |  |  |  | 118086 | Total components removed: 0
    04/16/13 10:17:42:147 | [WARN] |  | OOBE | DE |  |  |  | 118086 | DW050: The following payload errors were found during install:
    04/16/13 10:17:42:147 | [WARN] |  | OOBE | DE |  |  |  | 118086 | DW050:  - Adobe Dreamweaver CS6_12.2.0_AdobeDreamweaver12-mul: Patch already installed
    04/16/13 10:17:42:147 | [WARN] |  | OOBE | DE |  |  |  | 118086 | DW050:  - Adobe Dreamweaver CS6_12.2.0_AdobeDreamweaver12de_DELanguagePack: Install failed
    04/16/13 10:17:42:147 | [INFO] |  | OOBE | DE |  |  |  | 118086 | Call PostSession Custom Hook
    04/16/13 10:17:42:147 | [INFO] |  | OOBE | DE |  |  |  | 118086 | ::START TIMER:: [Post session :{A9861095-6F8C-11E2-B313-84E4FE4B0A47}]
    04/16/13 10:17:42:148 | [INFO] |  | OOBE | DE |  |  |  | 118086 | In ReinstallSessionCloseProc
    04/16/13 10:17:42:148 | [INFO] |  | OOBE | DE |  |  |  | 118086 | Custom action return code: 0
    04/16/13 10:17:42:148 | [INFO] |  | OOBE | DE |  |  |  | 118086 | :: END TIMER :: [Post session :{A9861095-6F8C-11E2-B313-84E4FE4B0A47}] took 0 milliseconds (0 seconds)
    04/16/13 10:17:42:148 | [INFO] |  | OOBE | DE |  |  |  | 118086 | :: END TIMER :: [Total Timer] took 17239 milliseconds (17.239 seconds) DTR = 1.16016 KBPS (0.00113297 MBPS)
    04/16/13 10:17:43:150 | [INFO] |  | OOBE | DE |  |  |  | 118086 | -------------------------------------- Summary --------------------------------------
    04/16/13 10:17:43:150 | [INFO] |  | OOBE | DE |  |  |  | 118086 |  - 0 fatal error(s), 0 error(s)
    04/16/13 10:17:43:150 | [INFO] |  | OOBE | DE |  |  |  | 118086 | OSX version: 10.8.3 
    04/16/13 10:17:43:150 | [INFO] |  | OOBE | DE |  |  |  | 118086 |
    04/16/13 10:17:43:150 | [INFO] |  | OOBE | DE |  |  |  | 118086 | -------------------------------------------------------------------------------------
    04/16/13 10:17:43:150 | [INFO] |  | OOBE | DE |  |  |  | 118086 |
    04/16/13 10:17:43:150 | [INFO] |  | OOBE | DE |  |  |  | 118086 | Exit Code: 7 - Unable to complete Silent workflow.
    04/16/13 10:17:43:150 | [INFO] |  | OOBE | DE |  |  |  | 118086 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    04/16/13 10:17:43:150 | [INFO] |  | OOBE | DE |  |  |  | 118086 | END - Installer Session
    04/16/13 10:17:43:150 | [INFO] |  | OOBE | DE |  |  |  | 118086 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    Here is an extract (last lines) of the extension manager log file (Adobe Extension Manager CS6 6.0.5 04-16-2013.log):
    04/16/13 10:17:17:287 | [INFO] |  | OOBE | DE |  |  |  | 117458 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    04/16/13 10:17:17:287 | [INFO] |  | OOBE | DE |  |  |  | 117458 | Installer Operation: PayloadUninstaller
    04/16/13 10:17:17:287 | [INFO] |  | OOBE | DE |  |  |  | 117458 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    04/16/13 10:17:17:287 | [INFO] |  | OOBE | DE |  |  |  | 117458 | Session {7E13F325-CE11-42B3-BFD8-C15A8296EACB} modify request for AdobeCode: {7E13F325-CE11-42B3-BFD8-C15A8296EACB}
    04/16/13 10:17:17:316 | [INFO] |  | OOBE | DE |  |  |  | 117458 | Effective AdobeCode for: {7E13F325-CE11-42B3-BFD8-C15A8296EACB} is {7E13F325-CE11-42B3-BFD8-C15A8296EACB}
    04/16/13 10:17:17:364 | [INFO] |  | OOBE | DE |  |  |  | 117458 | PDB install manipulation failed
    04/16/13 10:17:17:388 | [INFO] |  | OOBE | DE |  |  |  | 117373 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* Operation complete. Setting status: -1 =*=*=*=*=*=*=*=*=*=*=*=*=*
    04/16/13 10:17:17:388 | [INFO] |  | OOBE | DE |  |  |  | 117373 | :: END TIMER :: [Payload Operation :{7E13F325-CE11-42B3-BFD8-C15A8296EACB}] took 102 milliseconds (0.102 seconds)
    04/16/13 10:17:17:389 | [INFO] |  | OOBE | DE |  |  |  | 117373 | User specified overrideFile:
    04/16/13 10:17:17:391 | [INFO] |  | OOBE | DE |  |  |  | 117373 | The csu inventory was not updated for payload Adobe Extension Manager CS6_6.0.5_AdobeExtensionManager6.0All 6.0.5.0 {7E13F325-CE11-42B3-BFD8-C15A8296EACB}, value of local var is -1
    04/16/13 10:17:17:391 | [INFO] |  | OOBE | DE |  |  |  | 117373 | Calling the ROLLBACK custom action code for pre-install for payload Adobe Extension Manager CS6_6.0.5_AdobeExtensionManager6.0All 6.0.5.0 {7E13F325-CE11-42B3-BFD8-C15A8296EACB}
    04/16/13 10:17:17:433 | [INFO] |  | OOBE | DE |  |  |  | 117373 | No operation.  We're done:
    04/16/13 10:17:19:436 | [INFO] |  | OOBE | DE |  |  |  | 117373 | Total components installed: 0
    04/16/13 10:17:19:436 | [INFO] |  | OOBE | DE |  |  |  | 117373 | Total components repaired: 0
    04/16/13 10:17:19:436 | [INFO] |  | OOBE | DE |  |  |  | 117373 | Total components removed: 0
    04/16/13 10:17:19:437 | [WARN] |  | OOBE | DE |  |  |  | 117373 | DW050: The following payload errors were found during install:
    04/16/13 10:17:19:437 | [WARN] |  | OOBE | DE |  |  |  | 117373 | DW050:  - Adobe Extension Manager CS6_6.0.5_AdobeExtensionManager6.0All: Install failed
    04/16/13 10:17:19:437 | [INFO] |  | OOBE | DE |  |  |  | 117373 | Call PostSession Custom Hook
    04/16/13 10:17:19:437 | [INFO] |  | OOBE | DE |  |  |  | 117373 | :: END TIMER :: [Total Timer] took 3213 milliseconds (3.213 seconds) DTR = 4.97977 KBPS (0.00486306 MBPS)
    04/16/13 10:17:20:438 | [INFO] |  | OOBE | DE |  |  |  | 117373 | -------------------------------------- Summary --------------------------------------
    04/16/13 10:17:20:438 | [INFO] |  | OOBE | DE |  |  |  | 117373 |  - 0 fatal error(s), 0 error(s)
    04/16/13 10:17:20:438 | [INFO] |  | OOBE | DE |  |  |  | 117373 | OSX version: 10.8.3 
    04/16/13 10:17:20:438 | [INFO] |  | OOBE | DE |  |  |  | 117373 |
    04/16/13 10:17:20:438 | [INFO] |  | OOBE | DE |  |  |  | 117373 | -------------------------------------------------------------------------------------
    04/16/13 10:17:20:438 | [INFO] |  | OOBE | DE |  |  |  | 117373 |
    04/16/13 10:17:20:438 | [INFO] |  | OOBE | DE |  |  |  | 117373 | Exit Code: 7 - Unable to complete Silent workflow.
    04/16/13 10:17:20:438 | [INFO] |  | OOBE | DE |  |  |  | 117373 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    04/16/13 10:17:20:438 | [INFO] |  | OOBE | DE |  |  |  | 117373 | END - Installer Session
    04/16/13 10:17:20:438 | [INFO] |  | OOBE | DE |  |  |  | 117373 | *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    Regards
    Jan

    In this log file I can see you are getting Error : U44M1P7 while updating the software
    This Error comes where language packs for software are not installed properly on the machine.
    I would suggest to update Adobe Application manager from
    Windows : http://www.adobe.com/support/downloads/detail.jsp?ftpID=4773
    MAC: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4774
    then try to install the update if still you are not able to update software and getting same error then uninstall all the Adobe software selecting remove prefernces.
    After uninstalling the software run the Adobe Cleaner tool(http://www.adobe.com/support/contact/cscleanertool.html) and remove the leftovers.
    Regards,
    Jatin Dembla

  • How can I move my preferences and extensions to a new computer? Have I done it successfully?

    My old computer crashed. I've set up the new computer. I copied all the profile files/folders to the profile on the new computer in both the local and roaming folders.
    Does this copy over my preferences and extensions? The help pages say they don't tell how to copy those since they can be the cause of problems. However, they weren't problems. So I want them copied. The extensions folder on the old computer was empty (I don't recall if It'd had any installed or just bookmarked some.) I remember making some specific preferences changes in that "advanced" file (that worked fine afterward.)
    So with what I did, did I successfully copy everything over? If not - where are the extensions and preferences so that I can copy them over?
    Bonus big question - is there a way to merge my old browsing history with the history on the new computer that I used for 10 days? Right now I set those 10 days as a separate profile, so I can save and go check it if I really need to.
    Thanks!

    Take the good profile and copy it to the new computer. Also copy all
    of your add-ons. On the new computer, start Firefox. Once it is running,
    shut it down. Then transfer the information from the old profile to the new.
    Thess add-ons can save all add-ons into a single folder for transfer.
    These add-ons can be a great help by backing up and restoring Firefox
    '''[https://addons.mozilla.org/en-US/firefox/addon/febe/ FEBE (Firefox Environment Backup Extension)]''' {web link}
    FEBE allows you to quickly and easily backup your
    Firefox extensions, history, passwords, and more.
    In fact, it goes beyond just backing up -- It will actually rebuild
    your saved files individually into installable .xpi files.
    It will also make backup of files that you choose.
    '''[https://addons.mozilla.org/en-US/firefox/addon/opie/ OPIE]''' {web link}
    Import/Export extension preferences

  • How to fix privacy and extensions tab that are blank (using Safari 5.1.7)

    I have looked at the help provided in this forum for fixing the privacy and extension tabs that happen to now be blank.  However, being new to a mac, I was not able to follow those instructions.  If anyone can give me some help/guidance, I would really appreciate it.  Also, what exactly does the privacy tab do?  If it has been blank for a while and I have been to websites and used my credit card information was it secure?  Thanks so much in advance for any/all help.  TAD

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, or by a peripheral device.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • How can I save ONLY the bookmarks and extensions

    I am about to do a clean reinstall of Firefox. I want to save ONLY the Bookmarks and Extensions and NOTHING ELSE from the Firefox Profile. How can I do this please?
    Thank you,

    Both answers combined to help solve the problem. It would be good if more than one answer can be selected as "Chosen Solutions", because this situation occurs often in forums.
    Thank you to both of you!
    Kind regards.

  • How to know the filename and extension of a file in PKCS7  envelope

    Hi! I've a programm that makes a PKCS7 file. I'm enveloping just one file at a time. I want to know if there is a way to know the filename and extension of the file INSIDE de PKCS7 envelope. Because I receive a file that has .p7 extension, but the real document, the one to be decyprted, I don't know its name nor its extension, and I need both for writing it (I will not just invent some name).
    Best regards!

    The construct of the PKCS7 structure you have, is defined in rfc2633. The part defining EncapsulatedContent is introduced in CMS [rfc2639], where no such attribute for a file name is saved in the structure.
    In some occasions, when it is critical, organizations add own object identifier and attibutes to save such descrptivie information as filename and extension.
    A practical approach is, on the signing side, sign the file A.ext to A-ext.p7m resp. A-ext.p7s
    You can not assume a global approach to get back the original filename (if you have no agreement on not the signing peer as above) of the encapsulated data. The reason is, the encapsulated data field is general and it does not neccesarily mean it was a file (a part of a stream or any definite sequence of bytes in general).

  • DMS - file name and extension

    Hi everybody,
    I will appreciate if somebody could tell me how to read the file name and extension of already uploaded to DMS document (a function module will be best but name of db table is ok too). Is this information stored in SAP DB at all?
    Thanks
    Ogniana

    Check
    http://help.sap.com/saphelp_erp2004/helpdata/en/c6/893d55449311d1893e0000e8323c4f/content.htm
    Regards,
    Santosh

  • Every time i go to a site or and extension of a site i use a lot it asks me if it can you adobe flash I want to know how to make it so it just allows all site

    Every time i go to a site or and extension of a site i use a lot it asks me if it can you adobe flash I want to know how to make it so it just allows all site to just start it. I only go to mainstream sites so its not a security issue. I have gone into the adobe settings in my control panel and allow sites to store info on my PC so any other suggestions? thank you to anyone who can help.

    Have you tried the Reset Safari... in the pull down menu under Safari?
    Allan

  • Firefox 8 and 9beta. Back and Forward buttons greyed out. Right click menu also has forward and back greyed out. Updated all plugins, then disabled all plugins and extensions and started in safe mode. No change.

    My forward and back buttons are greyed out after update to Firefox 8. Tried to move to 9 beta, but same behavior. Back and Forward also greyed out in right click menu.
    Attempted to fix by updating all plugins and extensions, then disabled all plugins and extensions, and then tried to start in safe mode. Nothing worked.

    You could have backed up your profile folder. If you did, [[Recovering important data from an old profile]] can help :)

  • Getting Output filename and extension same as the incoming filename and extension

    I need to create a SFTP send port where I should get the output file name and extension same as that of the incoming filename
    I had set the filename in the send port as "%SourceFileName%" but this did not work.
    I have also assigned the input filename (without extension) in a variable in orchestartion. Is there any way i could get the output filename and extension same as that of the incoming message?
    Any help would be much appreciated

    Hi,
    The %SourceFileName% macro maps to the context property BTS.ReceiveFileName that travels with your message in the context. So in order for this macro to work in a send port the message that is going out needs to have this BTS.ReceiveFileName property on
    the context. You probably creating a new message in your orchestration and sending that out. The new message does not have the property on its context which makes it fail. Use a message assignment shape in your orchestration to set the context property for
    the message going out:
    MyMessage(BTS.ReceiveFileName) = OrigMessage(BTS.ReceiveFileName);
    Then %SourceFileName% macro will work at send port.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Name and extension network volume - problem

    Hi all,
    I am 10.7.5 and when I get my network volumes the system I added an extension to the volume name!
    example:
    volume name: Music
    in name and extension: Music-2
    Why am I adding -2??
    and how to no longer be
    Thank you for your help

    All updates are installed regularly, so I am indeed at the newest version of all available software. I just haven't updated my signature here.
    And the name of the attachment is mangled only when I use the client to send an attachment to any other Gmail account ( both Windows or Mac, accessed either through a client or directly at the receiving end). The same email cc'd to my school address shows the entire file name. And if I send the email through Gmail directly, then it is fine too, as I mentioned.
    Message was edited by: Deep Blue to change the OS version.

  • Get File by modified date and extension then copy to location

    Hello,
    Ill give a brief description of what I am trying to accomplish. We have a bunch of files that are sitting on a deduplication box (Exagrid), we want to try and copy certain files off of this dedup box, however, if we copy EVERYTHING this will fill up our
    entire NAS Device. So, instead, I need to build a script that finds files by a modified date and extension type, then copy those to a specified folder. 
    Here is the code:
    $logfile = "C:\CopyResults.log"
    function LogWrite{
    Param([string]$logstring)
    Add-Content $logfile -Value $logstring
    $date = get-date
    $DateToCompare = (Get-Date).AddDays(-2)
    $Files = Get-ChildItem -Recurse | Where-Object {$_.LastWriteTime -gt $DateToCompare} | Where-Object {$_.Extension -eq ".xlsx"}
    foreach($File in $Files){
    Write-Host "$File was copied to C:\test"
    Copy-Item $File C:\test
    logWrite "$File was copied to c:\test --- $date"
    The file extension is of course just a test, as well as the destination of where these files are to be copied to. Ultimately I would like to build in the functionality that will check the date and delete the files after a certain amount of time has passed and
    then copy new files. For now, though, I would be satisfied with just some insight on my own idea and know where I am going wrong or how to clean this up a little better. The overall issue I having is when I run this portion of the script I get this: Copy-Item
    : Cannot find path 'C:\Users\<username>\<filename>.xlsx' because it does not exist.
    At line:13 char:5
    +     Copy-Item $File C:\test
    +     ~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (C:\Users\<usern...al filename>.xlsx:String) [Copy-Item], ItemNotFoundException
        + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

    I solved the issue. Here is the full script:
    net use \\netpath\filename /user:<Username> <Password>
    $logfile = "C:\CopyResults.log"
    function LogWrite{
    Param([string]$logstring)
    Add-Content $logfile -Value $logstring
    $date = get-date
    $DateToCompare = (Get-Date).AddDays(-1)
    $VBMs = Get-ChildItem \\netpath\filename -Recurse | Where-Object {$_.LastWriteTime -gt $DateToCompare} | Where-Object {$_.Extension -eq ".vbm"}
    $VBKs = Get-ChildItem \\netpath\filename -Recurse | Where-Object {$_.LastWriteTime -gt $DateToCompare} | Where-Object {$_.Extension -eq ".vbk"}
    $VIBs = Get-ChildItem \\netpath\filename -Recurse | Where-Object {$_.LastWriteTime -gt $DateToCompare} | Where-Object {$_.Extension -eq ".vib"}
    foreach($VBM in $VBMs){
    Write-Host "$VBM was copied to C:\test"
    Copy-Item $VBM.FullName \\netpath\filename
    logWrite "$VBM was copied to c:\test --- $date"
    foreach($VBK in $VBKs){
    Write-Host "$VBK was copied to C:\test"
    Copy-Item $VBK.FullName \\netpath\filename
    logWrite "$VBK was copied to c:\test --- $date"
    foreach($VIB in $VIBs){
    Write-Host "$VIB was copied to C:\test"
    Copy-Item $VIB.FullName \\netpath\filename
    logWrite "$VIB was copied to c:\test --- $date"
    "In this case you are handing a System.IO.FileSystemInfo.FileInfo object to the Copy-Item cmdlet. I think the cmdlet is probably defaulting to using the .Name property and that is not enough information for the copy to work. When you explicitly give the
    .FullName property to the cmdlet, it now has the information that it needs."
    I found this on Stack Overflow buried in the forums and it resolved all my issues. I have tried using that tool and it works very well, however, Powershell is what I am using for everything and I would like to keep it that way.
    Thank you all for your time and help.

  • I have disabled all add ons and extensions to stop adverts but everytime I log into my pc the adverts appear again? not happy :(

    since I updated firefox I have been HOUNDED by adverts. I read an article that suggested disabling all add ons and extensions but they seem to enable themselves again after I open my pc! I am very careful and always tick and untick boxes when I am downloading updating anything to ensure this doesn't happen therefore these add ons seem to have been automatically added by firefox during the update. not cool! the amount of adverts and the fact I have never suffered from such a pop up invasion in my life is becoming EXTREMELY annoying how do i permanently stop these adverts?

    Do a malware check with some malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

Maybe you are looking for

  • Hooking up my iphone to a new computer for the first time....

    My computer broke and isn't worth fixing so I can't access it again. My mom just bought her a new laptop so I just inherited the one she had been using (actually ended up working out great for me cause it's only a year old and nicer than mine that br

  • Creating a "more" button on the menu bar when the menus are more

    Hi, I wanted to create a functionality similar to that we can see in eclipse editor. when we open files more than a number, only some of the pages are visible on the editor. we can access the rest from the button which shows the names of files. I am

  • How can I reset my password via Lion Server web front-end?

    I'm trying to enable my users to be able to change their passwords from the default value I've given them. This can be done from the user's profile page but when with the new Lion Server web interface, I select the "Change Password" at the bottom of

  • Need to send mail using apex

    Hi, I am using apex 4.2 and oracle 11g XE. I need to send mail so I used the following code: HTMLDB_MAIL.SEND(       P_TO       =>  '[email protected]',       P_FROM     =>   [email protected]       P_SUBJ     =>  'Data in TECHNICAL_DETAIL edited' ,

  • Need help with embedded SWF in PDF as navigation

    Hi, I was wondering is there a way to have an embedded swf navigate to different pages of a pdf? Example: My swf is on page one. There are mulitple buttons in the swf, when clicked it will take you to page 3, or 5, or 7, etc. Currently, when I click