Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old Dec 18, 2012, 10:32 PM   #1
Ides
macrumors member
 
Join Date: Mar 2012
Use a space in a "system" command

I'm trying to get into a directory from within a program, being written in C. I use the following command:

Code:
system("cd ~/Library/Application Support/ftblauncher");
Except the space in "Application Support" is throwing it off, it doesn't understand it. I have tried adding a backslash before the space but then xcode says "unknown escape sequence". Does anyone know how to fix this?
Ides is offline   0 Reply With Quote

 
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
General: iOS7 command line... Equivalent of "say" command? RobertoG Jailbreaks and iOS Hacks 0 Jan 19, 2014 05:05 PM
iPad: Back of box says "Black" not "Space Gray" vistokid iPad 32 Dec 5, 2013 10:01 AM
"Applications" menu command - "item cannot be found" - owner/permissions? (10.6.8) MacOSExustio OS X 2 Jul 20, 2013 05:05 AM
"Other" space on HD's. It's NOT Time Machine, or "other graphics files" chankane OS X 10.8 Mountain Lion 2 Mar 2, 2013 07:16 PM
Gerry Anderson, producer of "Space: 1999" and "UFO", passes away Thomas Veil Current Events 17 Jan 22, 2013 05:46 AM

Forum Jump

All times are GMT -5. The time now is 08:42 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC