Using a command line with spaces in the path name

I want to write a batch file simple to keep the output of the log file in a program, I'm running. Unfortunately, I him did not over the years and I'm rusty I thought.

Basically, the CW program creates a file called "log.txt".

What I would do is to remove a file called log10.txt and the iteratively to rename log9, txt connect 10.txt, log 8. txt log9 txt... and so on.

Once the name change is made, I would like to run CW.txt.

Some complications. There is a version of the program the two 32 - bit and 64 - bit and only can exist.

So I thought I could use the system environment PROCESSOR_ARCHITECTURE VCBBASE to test if I am running 64 bit.

Then I could use ProgramFiles or % ProgramFiles (x 86) % to locate my executable.

Sounds easy in theory, but I'm stumbling - a lot.

I use cmd to open a window to test my script of commands and the batch script is in a file called "testme.cmd." I don't know if it would make a difference if the batch file has been "testme.bat"?

The full name of the directory for the 64 bit version of the program is:

C:\Program Files\KingComp\Cram 3\CW.exe Wiz

You try to run a batch file to determine if the file exists:

If exist %ProgramFiles%\KingComp\Cram Wiz 3\CW.exe

causes an error: the system cannot find the path specified. I tried various combinations of the quotes around parts or all of the order - all without success. The research gives a lot of results, but none seem to apply to my problem except suggestions to determine the 8.3 file name and use it. But I do not know how to find by program structures of 8.3 directory.

Is it possible to use the Windows 7 environment variables and a path name that contains spaces and get a positive result?

Thank you.

I'm also not sure exactly what shell or the shell I use. As far as I know is not BACK, Dorothy. :)

Hi Mike,.

Your question of Windows 7 is more complex than what is generally answered in the Microsoft Community. It is better suited for the IT Pro TechNet public.  Please post your question using the link below.

http://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itproappcompat&filter=AllTypes&sort=lastpostdesc

I hope this helps.

Tags: Windows

Similar Questions

  • WIN8 scheduled task does not work with spaces in the path of the program

    Hello, I walked with this problem. I created a basic task using the Task Scheduler, and I noticed if the program you want the task to run, it's the path contains white space, it will not work.

    Does anyone know how to solve?

    I tried with this http://support.microsoft.com/kb/823093/en-us, but could not make it work.

    Thank you.

    I had the same problem http://answers.microsoft.com/en-us/windows/forum/windows8_1-system/scheduled-tasks-don ' t-run-pops-up-how-do-you-want/14e9f209-09b7-46a9-8739-ba821b565e1b?tm=1430262836762 with a task "alarm" working if the file name has spaces. I renamed the file, but win8.1 must be able to handle spaces in the directory/file names. I think it's a bug.

  • SQL * call command line loader with spaces in the path

    I need to call a remote file and try this:
    sqlldr USER/password@SERVER \\servername\drivename\Folder Name Messing Me Up\PLACE\Programs\QC2\Data\StandardRawFileRAW.ctl
    He always tells me that the file is not found, but it is there! How should I write it so that it can find the file?

    Thank you very much!

    Wrap your name in path in single quotes

    sqlldr USER/password@SERVER '\\servername\drivename\Folder Name Messing Me Up\PLACE\Programs\QC2\Data\StandardRawFileRAW.ctl'
    

    Kind regards
    Phiri

  • CS3 files with spaces in the name

    I have a slight problem with the files that are in folders that have spaces in the name of the folder.

    For example, the file is in the following location: rtu 41%.psd/c/n Hold/Test Image file/mondeo

    If I run the script, it creates a folder called ScriptFolder to the location of the file and a saveAs psd files in that folder but I get an error.

    General Photoshop error occurred. This feature can pas...ld\...\mondeo n 41% ' because the file is not found.

    If I change ' folder of images to test ' to 'Test_Image_Folder', which is where the file is the script works.

    Here's the script of any suggestions on how I can get around this?

    var myPsDoc = app.activeDocument;
    var justname = myPsDoc.name.split ('.) ») [0]
    var MonNouveauDossier = new Folder(myPsDoc.path+"/ScriptFolder/"); "
    If {(myNewFolder.exists)
    } else {}
    myNewFolder.create ();
    }
    newFile = new file (MonNouveauDossier + "/" + justname)
    photoshopSaveOptions = new PhotoshopSaveOptions()
    photoshopSaveOptions.embedColorProfile = false
    myPsDoc.saveAs (newFile, PhotoshopSaveOptions, true, Extension.LOWERCASE)

    With the help of decodeURI should take care of the problem with spaces in the path.

    var MonNouveauDossier = new folder (decodeURI (myPsDoc.path) + "/ScriptFolder/");

  • FTP access with spaces in the names of dir

    Hello

    I'm doing a recursive list of files in an FTP directory.

    Although FileZilla deals with spaces in the names of directory without problem, it seems that Labview struggles a little.

    In effect, if I ask labview for files and a folder named directory, for example/Projects/Camera 1 /, it returns an empty array (while FileZilla sees clearly 12 files in that folder). It seems that the problem is white in the name space, because if I replace (using FileZilla) the space character by '_', LV correctly gives me the list of files.

    No idea how the LabView FTP working properly deal with spaces in the directory and file names?

    Best regards

    perper2001

    Hello

    Unfortunately, I can't share the code, but here's a screenshot of what it looks like.  It is based on the "vi directory listing" which comes with labview.

    Basically, it send the command MLSD and wait for an answer. After that, it's a matter of parsing of the response from the server that my FTP looks like this:

    type = CDIR; sizd = 3; change = 20150220090455; UNIX.mode = 0705; UNIX.uid = 32210; UNIX.gid = 100; single is d8g863beb0;.
    type = IRDP; sizd = 5; change = 20150302165245; UNIX.mode = 0705; UNIX.uid = 32210; UNIX.gid = 100, unique = d8g863beae;...
    type = dir; sizd = 12; Change = 20150302000236; UNIX.mode = 0705; UNIX.uid = 32210; UNIX.gid = 100, unique = d8g863beb2; Battery camera 9

    Kind regards

    Peper

  • M40X: using digital telephone line with modem internal

    the M40 X manual says use digital telephone line with the internal modem, in zimbabwe, all lines are digital until to now do for telephone line

    [Edited by: admin August 10 05 21:19]

    Hallo nasir

    You are right. Connect the modem to a digital telephone line. As far as I know, the tension is much higher by digital line and it can damage the equipment.

    In my opinion the best solution for you is an external digital modem.

    Good bye

  • Unable to ping a website in command line with an error message: 'ping is not recognized as an internal or external command.'

    Original title: ping does not work

    In the cmd box when I try to ping from a site, I get a message saying 'ping is not recognized as an internal or external command.'

    I entered the command as follows: Office > ping www.yahoo.com

    Dan Calic, salvation

     

     

    Thanks for posting your question in the Microsoft Community.

    I understand that you are unable to ping a website in command line with an error message: 'ping is not recognized as an internal or external command.' Correct me if I'm wrong.

    I imagine the inconvenience that you are experiencing. I will certainly help the question of fixing.

    To help you suggest several steps to solve the problem, I would appreciate if you could answer the following questions:

    1 are you facing problems when accessing Internet?

    2. have you made any recent hardware or exchange of software on your computer before the show?

    Please follow the steps and check the question below:

    a. click Start, and then type the three letters cmd in the search box and then right-click on command prompt and click run as administrator.

    b. type these commands and press enter after each:

    dir %SystemRoot%\System32\ping.exe

    path %path%;%SystemRoot%\System32

    Ping www.yahoo.com

    c. a report.

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

  • Essential support for creating custom reports on "Openmanage" using "Essentials" command line Interface

    Good afternoon

    Please can you help to create custom reports in "Essential Openmanage" using "Essentials" command line Interface

    The default reports are not feasible.

    Hi there Oswaldo and thank you for the question.

    Currently, OME 1.3 doesn't have a custom report generator.  I don't think that the CLI help as it is mainly used to set up from the beaches of discovery and things like that.

    There is a REST API that _may_ allow to return by the data of the database of the MEO program.  The REST API guide is in the section of the Documentation on the Dell TechCenter for OME page.

    www.delltechcenter.com/ome.

    Thank you

    Rob

  • select lines with garbage (not the numbers and point symbols)

    Hi all! I've got varchar2 column where users insert what they want. But this column is used for the value of numbers (from 0.00 to 100.00). How can I select only the number and the symbol dot:

    NVL (ABS (regexp_replace (Replace(Avalue,',','.'),'[^ 1, 2, 3, 4, 5, 6, 7, 8, 9, 0,.,]')), 0)

    Now, I need to select lines with symbols of the trash to correct errors. How do I "invert selection"? I mean by selecting only the lines that are composed of waste (except the numbers and the dot symbol).
    Thanks in advance.

    You can try this

    select trim(translate(replace(avalue,',','.'),'1234567890.','           ')) from dual
    

    If the symbols of the trash will be inserted then it will return that

  • Error: no 1639 invalid command line argument. Consult the installer of Windows S

    Hello

    I am trying to install Oracle 10 g Express on Windows XP SP3. A few seconds after clicking on 'Install' in the Summary window, I get the following error message:

    "Error: no 1639 invalid command line argument." Check the kit of development Windows Installer by using the detailed command line. »


    Anyone know what to do?


    Peter

    Please go through the following link (does not directly apply in your case).

    http://support.Microsoft.com/kb/326027

    HTH...

  • What is fledge command-line argument to control the graphics acceleration?

    Is there a command line argument to control the graphics acceleration for a JDE 5.0 Simulator?

    I would like to switch off in the command line so I can add it to the Simulator Run Eclipse IDE and the debug configuration.

    I checked their moult imaginal/Help and I have not found any that I could see that it works.

    Thank you.

    The settings are stored in a file located at

    \Documents and Settings\ [windows login name]\net\rim\fledge-2\fledge-saved.conf

    At the bottom of the appearance of file for the line:

    4
    

    Change the number 0 for no acceleration.

  • Error - Installer: wrapper. creatFile failed with error 123: the file name, directory name or volume label syntax is incorrect when installing any program.

    Original title: there is an error then that inistalling some programs such as, java, internet download manager and...

    There is an error then that inistalling some programs such as, java, internet download manager and...

    for example, I want inistall an application or a program like Java, but when I start to inistall, it works like adminstere then said: (Installer: wrapper. creatFile failed with error 123: the file name, directory name or volume label syntax is incorrect.)

    It even I mean to inistall Internet download manager and VLC...

    my pc is automatically updated and when updates are available whenever I download inistall,.

    Please help me, I love my windows Vista, tnx

    Hello Aliahriman,

    Please look at the post below and see if it will solve your "creatFile failed with error 123: the file name, directory name or volume label syntax is incorrect" question.
    He has helped others with a similar issue.
    http://social.answers.Microsoft.com/forums/en-us/VistaInstall/thread/3b180316-95c2-4613-8c38-8515481db22c

    If please reply back and let us know if this helps solve your problem.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • . / deinstall.pl: / usr/local/bin/perl: Bad interpreter: a file or a directory in the path name does not exist

    Hello

    I want to uninstall my OS (IBM AIX) database software, but when I lance./deinstall.pl, I got error with the message:

    «. ' / deinstall.pl: / usr/local/bin/perl: Bad interpreter: a file or a directory in the path name does not exist.

    In usr directoryI don't have any perl file, the same time on another server uninstall procedure completes successfully.

    Anyone have the same problem?

    Thanks in advance!

    ln s/use/bin/perl/usr/local/bin/perl

  • When the shared program files to remote machines using the command line it shows in the 'c' drive volume has no label

    Considered system 2A & b... I need write access to the Program Files directory of computer remote (B) (a)... trying to create a file or folder.
    using command line.

    Hi kesavarajm,

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet forum.

    http://social.technet.Microsoft.com/forums/en/itproxpsp/threads

  • How to create a table with spaces between the lines...

    Hello

    I use jdev 11.1.1.6 and I need to insert spaces between the lines. How this can be done?

    Thank you and best regards,
    Tarun Agrawal

    Hello

    I'm sorry to forget on the spacer. You must use css like mentioned AP.

    Arun-

Maybe you are looking for

  • Tuner TV Qosmio E15 - AV101 does not work

    HelloI bought Qosmio E15-AV101 without recovery CD, I downoladed driver form toshiba web site.then I installed windows XP Media Center on it, but when I tried to lunch the tv there was a message (this device is already in use by another program). I t

  • Data to recover the Satellite M70-340

    Satellite M70-340 - is possible to * recover * data by a way or software after using * product * recovery * CD.

  • Windows Vista does not recognize my Canon powershot A710IS

    Recently tried to download photos for the first time in a few months and the USB or the SD card reader worked. The USB works for other things such as Chargers, printer, etc. Under Device Manager there is no option for a digital camera. My laptop does

  • Burn DVD-R is not all properly.

    I copied the pictures and videos from my iPhone and stuck on a DVD-R. Everything seemed finished and well after 1 hour and 45 minutes of burning, so I deleted the photos from my iPhone. Before I ejected the DVD, where it usually says "prepares the di

  • Is blackBerry smartphones can set notifications for peep up to acknowledge

    On a blackberry 8320 y at - there a way to set an audio notification of an e-mail message received to be similar to a pager - the audio guys to internals until he message is recognized.  If this isn't a feature installed on the blackberry.  You know